summary refs log blame commit diff stats
path: root/tests/threads/tactors.nim
blob: 45a03ebb7a27659635eb68e922aa92337efff9c8 (plain) (tree)
1
2
3
4
5
6
7
8
9






                  

                             
                    

                                                  
 
discard """
  outputsub: "150"
"""

import actors

var
  pool: TActorPool[int, void]
createActorPool(pool)
for i in 0 .. < 300:
  pool.spawn(i, proc (x: int) {.thread.} = echo x)
pool.join()