<lambda>null1// This file was automatically generated from flow.md by Knit tool. Do not edit. 2 package kotlinx.coroutines.guide.exampleFlow08 3 4 import kotlinx.coroutines.* 5 import kotlinx.coroutines.flow.* 6 7 suspend fun performRequest(request: Int): String { 8 delay(1000) // imitate long-running asynchronous work 9 return "response $request" 10 } 11 <lambda>null12fun main() = runBlocking<Unit> { 13 (1..3).asFlow() // a flow of requests 14 .map { request -> performRequest(request) } 15 .collect { response -> println(response) } 16 } 17