summary refs log tree commit diff stats
path: root/lib/deprecated/pure
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-08-13 17:27:44 +0200
committerAraq <rumpf_a@web.de>2018-08-13 17:27:44 +0200
commit420ed0596b8114c67275c4702fa3524ebd76e5eb (patch)
treef381eaedb04743a43faa1ded7e5d77ac5952ab3e /lib/deprecated/pure
parentd60bb1b289c7914443a20b78bfb6c69f05184937 (diff)
downloadNim-420ed0596b8114c67275c4702fa3524ebd76e5eb.tar.gz
fixes more nil handling regressions
Diffstat (limited to 'lib/deprecated/pure')
-rw-r--r--lib/deprecated/pure/actors.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/deprecated/pure/actors.nim b/lib/deprecated/pure/actors.nim
index 17321cc0e..451668825 100644
--- a/lib/deprecated/pure/actors.nim
+++ b/lib/deprecated/pure/actors.nim
@@ -43,7 +43,6 @@ type
     t: Thread[ptr Actor[In, Out]]
 
   PActor*[In, Out] = ptr Actor[In, Out] ## an actor
-{.deprecated: [TTask: Task, TActor: Actor].}
 
 proc spawn*[In, Out](action: proc(
     self: PActor[In, Out]){.thread.}): PActor[In, Out] =
@@ -168,7 +167,7 @@ proc terminate*[In, Out](a: var ActorPool[In, Out]) =
   for i in 0..<a.actors.len: join(a.actors[i])
   when Out isnot void:
     close(a.outputs)
-  a.actors = nil
+  a.actors = @[]
 
 proc join*[In, Out](a: var ActorPool[In, Out]) =
   ## short-cut for `sync` and then `terminate`.