Skip to content
Branch: master
Find file Copy path
Find file Copy path
3 contributors

Users who have contributed to this file

@Inego @qwwdfsad @elizarov
28 lines (21 sloc) 799 Bytes
* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
// This file was automatically generated from by Knit tool. Do not edit.
import kotlinx.coroutines.*
fun main() = runBlocking { // this: CoroutineScope
launch {
println("Task from runBlocking")
coroutineScope { // Creates a coroutine scope
launch {
println("Task from nested launch")
println("Task from coroutine scope") // This line will be printed before the nested launch
println("Coroutine scope is over") // This line is not printed until the nested launch completes
You can’t perform that action at this time.