https://kotlinlang.org logo
b

Bernhard

02/04/2019, 12:49 PM
Copy code
runBlocking {
    val result1= launch {
        return httpReqestResult
    }
    val result2 = launch {
        return httpReqestResult
    }
    val result3= launch {
        return httpReqestResult
    }
    val result4 = launch {
        return httpReqestResult
    }

    function_that_takes_result(result1, result2, result3, result4)
}