Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumKotlinFlow cold streamsSingle-choice MCQ

What does this code print, given that flowOf creates a cold flow?

fun main() = runBlocking { val f = flowOf(1, 2, 3).map { it * 10 } println("before collect") f.collect { print("$it ") } }