Created
April 18, 2022 05:59
-
-
Save user-mw/3dc7094752c214a6d767cb91f48db03b to your computer and use it in GitHub Desktop.
Coroutines. CoroutineScope code
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
// Code | |
public interface CoroutineScope { | |
/** | |
* The context of this scope. | |
* Context is encapsulated by the scope and used for implementation of coroutine builders that are extensions on the scope. | |
* Accessing this property in general code is not recommended for any purposes except accessing the [Job] instance for advanced usages. | |
* | |
* By convention, should contain an instance of a [job][Job] to enforce structured concurrency. | |
*/ | |
public val coroutineContext: CoroutineContext | |
} | |
// Code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment