Last active
July 22, 2019 13:27
-
-
Save RBusarow/8572f02933e3dd0a11de01e39d8670b4 to your computer and use it in GitHub Desktop.
extracting Elements from a CoroutineContext
This file contains hidden or 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
fun lookForCoroutineContextElements(context: CoroutineContext) { | |
val job: Job? = context[Job] | |
val interceptor: ContinuationInterceptor? = context[ContinuationInterceptor] | |
val exceptionHandler: CoroutineExceptionHandler? = context[CoroutineExceptionHandler] | |
val name: CoroutineName? = context[CoroutineName] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment