Paul Woitaschek
import kotlinx.coroutines.* val job: Job = Job() val scope = CoroutineScope(Dispatchers.Default + job) fun throwsAsync(): Deferred<Unit> = scope.async { throw Exception() } fun loadData() = scope.launch { throwsAsync().await() } suspend fun main() { loadData().join() scope.launch { println("worked") }.join() joinAll() println("done") }
marstran
launch
CoroutineExceptionHandler
async().await()
await()
A modern programming language that makes developers happier.