Explicit concurrency

foo(bar())
val x = bar()  // first call bar
foo(x) // then call foo
launch {
foo(bar())
}
fun CoroutineScope.launchFooBar() = launch { 
foo(bar())
}
suspend fun CoroutineScope.obfuscate(data: Data)
suspend fun obfuscate(data: Data)
fun CoroutineScope.obfuscate(data: Data)

Global scope

Further reading

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store