Created
July 8, 2019 00:55
-
-
Save RBusarow/a983351386319cd46d01495ce815c024 to your computer and use it in GitHub Desktop.
Snippet of the withContext() coroutine builder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public suspend fun <T> withContext( | |
context: CoroutineContext, | |
block: suspend CoroutineScope.() -> T | |
): T = suspendCoroutineUninterceptedOrReturn sc@ { ... } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment