summary refs log tree commit diff stats
path: root/tests/threads/tactors.nim
blob: ea052b9bd5abaebd72f229b04d1c97adb9f6b1a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
discard """
  outputsub: "150"
"""

import actors

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