``` runBlocking { foo() //foo returns a value and ...
# announcements
v
Copy code
runBlocking {
foo() //foo returns a value and is being captured by the lambda
}
Since runBlocking needs to return void, I get a compiler error
s
Copy code
runBlocking {
    foo() //foo returns a value and is being captured by the lambda
    Unit
}
d
Copy code
runBlocking<Unit> {
     foo() //foo returns a value and is being captured by the lambda
}
👍 2
v
Doh! So obvious I would never see, thank you 🙂
Would never guessed that @Dias thanks
👌 1