This commit is contained in:
Araq 2011-12-04 20:21:38 +01:00
commit 24e1d22ec9
2 changed files with 11 additions and 11 deletions

View file

@ -5,9 +5,9 @@ discard """
import actors
var
a: TActorPool[int, void]
createActorPool(a)
pool: TActorPool[int, void]
createActorPool(pool)
for i in 0 .. < 300:
a.spawn(i, proc (x: int) {.thread.} = echo x)
a.join()
pool.spawn(i, proc (x: int) {.thread.} = echo x)
pool.join()