`kotlinx.coroutines.async(context, start, block)` ...
# announcements
kotlinx.coroutines.async(context, start, block)
appears to be deprecated. What am I supposed to replace it with? I want to put
async(start=LAZY) { someSuspend() }
in my code, but I also don’t want to use deprecated functions. Technically I’m updating some third-party library’s documentation, and I’d rather my PR not use deprecated methods. The current sample code uses
async {…}
and I’d rather not dramatically alter the sample code, but hew closely to the original.
This function is now an extension function on a CoroutineScope:
myScope.async { ... }
👍 1