Created
September 10, 2022 09:53
-
-
Save aleksandarzekovic/a3f65d39c73f0cab769db9b64d95564c 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
@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