Skip to content

Instantly share code, notes, and snippets.

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 aleksandarzekovic/a3f65d39c73f0cab769db9b64d95564c to your computer and use it in GitHub Desktop.
Save aleksandarzekovic/a3f65d39c73f0cab769db9b64d95564c to your computer and use it in GitHub Desktop.
@InternalCoroutinesApi
public abstract class AbstractCoroutine<in T>(
parentContext: CoroutineContext,
initParentJob: Boolean,
active: Boolean
) : JobSupport(active), Job, Continuation<T>, CoroutineScope {
// ...
/**
* The context of this coroutine that includes this coroutine as a [Job].
*/
@Suppress("LeakingThis")
public final override val context: CoroutineContext = parentContext + this
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment