Skip to content

Instantly share code, notes, and snippets.

@ahinchman1
Created March 25, 2024 19:20
Show Gist options
  • Save ahinchman1/103106ca6b2055387dd42de8bd73ccf2 to your computer and use it in GitHub Desktop.
Save ahinchman1/103106ca6b2055387dd42de8bd73ccf2 to your computer and use it in GitHub Desktop.
fun main() = runBlocking {
println("runBlocking main")
val scope = CoroutineScope(Job())
println("scope created. Create job...")
val job = scope.launch {
...
}
println("Start job")
job.join()
println("Program ends")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment