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

In a flow, why does emitting from a different coroutine (e.g. inside launch) throw an exception?

flow { coroutineScope { launch { emit(1) } } }