Bob Glamm
05/26/2020, 9:28 PMdoWorkWithFork
takes longer purely due to the overhead of launching suspend functions into coroutines. If your effect body does something computationally intensive or takes time - a simple example is to delay 5 seconds - then you should see doWorkWithIO
take more total time than doWorkWithFork
. (Change the upper limit to 10 or 20 instead of 1,000,000 if using a five-second delay.)tim
05/26/2020, 9:38 PM