louiscad
currentScope { }
CoroutineScope(coroutineContext)
suspend inline fun <E> ReceiveChannel<E>.doOnEach( context: CoroutineContext = EmptyCoroutineContext, noinline action: suspend (E) -> Unit ) = currentScope { launch(context) { consumeEach { action(it) } } }
suspend inline fun <E> ReceiveChannel<E>.doOnEach( context: CoroutineContext = EmptyCoroutineContext, noinline action: suspend (E) -> Unit ) = CoroutineScope(coroutineContext).launch(context) { consumeEach { action(it) } }
elizarov
GlobalScope.launch(coroutineContex)
GlobalScope.launch(coroutineContext + context)
A modern programming language that makes developers happier.