Created
June 3, 2023 17:54
-
-
Save omkar-tenkale/507064715ff62084a0b4e1cb2cf1911e to your computer and use it in GitHub Desktop.
This file contains 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
fun <T> (suspend () -> T).createCoroutine( | |
completion: Continuation<T> | |
): Continuation<Unit> { | |
val coroutine = createCoroutineUnintercepted(completion) | |
return DispatcherContinuation(completion.context,coroutine) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment