efemoney
elizarov
coroutineScope { val t1 = async { task1() } val t2 = async { task2() } select { t1.onAwait { /* t1 is first */ } t2.onAwait { /* t2 is first */ } } t1.cancel() t2.cancel() }
A modern programming language that makes developers happier.