1 // This file was automatically generated from coroutine-context-and-dispatchers.md by Knit tool. Do not edit. 2 package kotlinx.coroutines.guide.exampleContext03 3 4 import kotlinx.coroutines.* 5 lognull6fun log(msg: String) = println("[${Thread.currentThread().name}] $msg") 7 8 fun main() = runBlocking<Unit> { 9 val a = async { 10 log("I'm computing a piece of the answer") 11 6 12 } 13 val b = async { 14 log("I'm computing another piece of the answer") 15 7 16 } 17 log("The answer is ${a.await() * b.await()}") 18 } 19