halim
08/26/2019, 10:03 AMval stream = flow {
emit(1)
emit(2)
}
emit(T) method use for send data to flow, but how flow store this data ?diesieben07
08/26/2019, 10:04 AMflow
is stored and called when the flow is collected. each time you call emit
the lambda is suspended until the collector processes the emitted element.