fixes 70
This commit is contained in:
parent
3c4260f504
commit
24e1d22ec9
2 changed files with 11 additions and 11 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue