Skip to content

Instantly share code, notes, and snippets.

@user-mw
Created April 18, 2022 05:59
Show Gist options
  • Save user-mw/3dc7094752c214a6d767cb91f48db03b to your computer and use it in GitHub Desktop.
Save user-mw/3dc7094752c214a6d767cb91f48db03b to your computer and use it in GitHub Desktop.
Coroutines. CoroutineScope code
// 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