sreich
04/07/2017, 5:33 PMnewFixedThreadPoolContext
to create a fixed amount of threads to run my function on..but i think i need to know the thread id it's running on (0 or 1..n)elizarov
04/07/2017, 5:38 PMsreich
04/07/2017, 5:40 PMsreich
04/07/2017, 5:44 PMfor n in 1..4 { thread { dostuff(threadNum=n) } }
, but now i wanna try using coroutines (and the channel/producer classes) with a fixed number of threadssreich
04/07/2017, 6:01 PMelizarov
04/07/2017, 6:29 PMthread
with launch(CommonPool)