Skip to content

Instantly share code, notes, and snippets.

@chaxiu
Created October 18, 2020 12:04
Show Gist options
  • Save chaxiu/eacec04ae3ecd57b7bbed29a2eb8dbb3 to your computer and use it in GitHub Desktop.
Save chaxiu/eacec04ae3ecd57b7bbed29a2eb8dbb3 to your computer and use it in GitHub Desktop.
public interface Continuation<in T> {
public val context: CoroutineContext
// just like: onSuccess(result)
// ↓ ↓
public fun resumeWith(result: Result<T>)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment