https://github.com/Kotlin/kotlinx.coroutines/pull/4132/commits/cc1ad3d33dc787a7402f1f442e256e5029e04cd2 describes a bug in the coroutine scheduler. We should look at it, write tests confirming the bug, and port the fix.