dave08
coroutineScope { }
either { }
simon.vergauwen
either
coroutineScope
coroutineScope { either<String, Int> { launch { delay(1_000_000) } ensureNotNull(null) { "Fails" } } // Either.Left("Fails") } // waits 1_000_000 completion
either<String, Int> { coroutineScope { launch { delay(1_000_000) } ensureNotNull(null) { "Fails" } } // Finishes "immediately", and cancels delay } // Either.Left("Fails")
A modern programming language that makes developers happier.