Maciek
03/24/2020, 6:55 AMyield
but with the coroutine that'll be started in the futureoctylFractal
03/24/2020, 6:57 AMyield()
? are you talking about the Sequence yield()
or the top-level yield()
?CompleteableDeferred
Maciek
03/24/2020, 6:58 AMyield
octylFractal
03/24/2020, 6:58 AMyield
doesn't wait for anything thoughMaciek
03/24/2020, 7:01 AMstreetsofboston
03/24/2020, 11:39 AMCoroutineScope.async(start=LAZY)
?
This will return a Deferred<T>
and the Coroutine won't yet be running. It will start only after calling await()
, start()
(and some other methods) on it.
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/async.htmlMaciek
03/24/2020, 11:54 AMbdawg.io
03/24/2020, 4:28 PMsuspend
keyword :)Maciek
03/24/2020, 5:43 PM