When I run this:
fun f() = runBlocking { val eh = CoroutineExceptionHandler { _, e -> trace(\"exception handler: $e\") } val j1 = launch(eh) {
What is your kotlinx.coroutines version? Since 0.26.0 standalone launch builder is now deprecated and You should be using GlobalScope.launch instead.
kotlinx.coroutines
launch
GlobalScope.launch
I tried your sample and after that change it worked.
Kotlinx.coroutines changelog