Skip to content

Instantly share code, notes, and snippets.

@omkar-tenkale
Created May 9, 2023 16:29
Show Gist options
  • Save omkar-tenkale/8eeb3921b90891ced0844f7dfe287cfa to your computer and use it in GitHub Desktop.
Save omkar-tenkale/8eeb3921b90891ced0844f7dfe287cfa to your computer and use it in GitHub Desktop.
public interface Continuation<in T> {
// A map like data structure to hold data carried by the continuation
public val context: CoroutineContext
// Called to complete the unfinished execution
public fun resumeWith(result: Result<T>)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment