Skip to content

Instantly share code, notes, and snippets.

@omkar-tenkale
Created June 3, 2023 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omkar-tenkale/507064715ff62084a0b4e1cb2cf1911e to your computer and use it in GitHub Desktop.
Save omkar-tenkale/507064715ff62084a0b4e1cb2cf1911e to your computer and use it in GitHub Desktop.
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