CoRoutine Gotchas

Job is not inherited: it is used as a parent

DONT: runBlocking(SupervisorJob()) makes no sense. pg 433.

img


Children
  1. Benchmarking against Thread Pool
  2. Benchmarking in Native
  3. Co routines invocations will wait for the background thread to finish even if result is not used right away.
  4. Delay Can Take Longer than requested
  5. Even with Async Await Io Dispatcher Not Using up All Cores
  6. Initial Run Blocking Takes Upwards of 100ms

Backlinks