Created
May 9, 2023 16:29
-
-
Save omkar-tenkale/8eeb3921b90891ced0844f7dfe287cfa 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
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