Skip to content

Instantly share code, notes, and snippets.

@af2905
Created November 11, 2023 21:56
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 af2905/301357689ca30c0ef70b6bca894128b7 to your computer and use it in GitHub Desktop.
Save af2905/301357689ca30c0ef70b6bca894128b7 to your computer and use it in GitHub Desktop.
BaseContinuationImpl
package kotlin.coroutines.jvm.internal
@SinceKotlin("1.3")
internal abstract class BaseContinuationImpl(
public val completion: Continuation<Any?>?
) : Continuation<Any?>, CoroutineStackFrame, Serializable {
protected abstract fun invokeSuspend(result: Result<Any?>): Any?
public open fun create(completion: Continuation<*>): Continuation<Unit> {
throw UnsupportedOperationException("create(Continuation) has not been overridden")
}
public open fun create(value: Any?, completion: Continuation<*>): Continuation<Unit> {
throw UnsupportedOperationException("create(Any?;Continuation) has not been overridden")
}
// There are many other functions here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment