Olekss
02/12/2018, 12:28 PMdeviant
02/12/2018, 1:07 PMkenkyee
02/12/2018, 2:02 PMlouiscad
02/12/2018, 2:02 PMThread.sleep(...)
when you can use delay(...)
instead.Olekss
02/12/2018, 2:04 PMdeviant
02/12/2018, 2:04 PMlouiscad
02/12/2018, 2:05 PMThread.sleep(...)
when you can use delay(...)
.Olekss
02/12/2018, 2:06 PMOlekss
02/12/2018, 2:06 PMOlekss
02/12/2018, 2:06 PMOlekss
02/12/2018, 2:06 PMlouiscad
02/12/2018, 2:06 PMCommonPool
is CPU cores minus one, so 3 threads. If you block one in a coroutine, other coroutines that need a thread will use another thread in the pool... unless all are blocked...Olekss
02/12/2018, 2:07 PMlouiscad
02/12/2018, 2:08 PMyield()
in your loop and other coroutines will be able to run between iterationsOlekss
02/12/2018, 2:11 PM