Skip to content

Instantly share code, notes, and snippets.

@RBusarow
Created June 21, 2019 23:23
Show Gist options
  • Save RBusarow/1aade8c4447607f0abe3a75fd79aacbf to your computer and use it in GitHub Desktop.
Save RBusarow/1aade8c4447607f0abe3a75fd79aacbf to your computer and use it in GitHub Desktop.
val scope : CoroutineScope = MainScope()
val parentJob = scope.launch {
val jobA = scope.launch {
val jobC = scope.launch { delayForever() }
val jobD = scope.launch { delayForever() }
delayForever()
}
val jobB = scope.launch { delayForever() }
delayForever()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment