Category "kotlinx.coroutines"

Kotlin Coroutines with returning value

I want to create a coroutine method which has returning value. For example) fun funA() = async(CommonPool) { return 1 } fun funB() = async(CommonPool) {

CoroutineExceptionHandler not executed when provided as launch context

When I run this: fun f() = runBlocking { val eh = CoroutineExceptionHandler { _, e -> trace("exception handler: $e") } val j1 = launch(eh) {