1 // This file was automatically generated from composing-suspending-functions.md by Knit tool. Do not edit.
2 package kotlinx.coroutines.guide.exampleCompose01
3 
4 import kotlinx.coroutines.*
5 import kotlin.system.*
6 
<lambda>null7 fun main() = runBlocking<Unit> {
8     val time = measureTimeMillis {
9         val one = doSomethingUsefulOne()
10         val two = doSomethingUsefulTwo()
11         println("The answer is ${one + two}")
12     }
13     println("Completed in $time ms")
14 }
15 
doSomethingUsefulOnenull16 suspend fun doSomethingUsefulOne(): Int {
17     delay(1000L) // pretend we are doing something useful here
18     return 13
19 }
20 
doSomethingUsefulTwonull21 suspend fun doSomethingUsefulTwo(): Int {
22     delay(1000L) // pretend we are doing something useful here, too
23     return 29
24 }
25