expensivebelly
@ObsoleteCoroutinesApi public fun <E> CoroutineScope.broadcast( context: CoroutineContext = EmptyCoroutineContext, capacity: Int = 1, start: CoroutineStart = CoroutineStart.LAZY, onCompletion: CompletionHandler? = null, @BuilderInference block: suspend ProducerScope<E>.() -> Unit ): BroadcastChannel<E>
SharedFlow
Nick Allen
channelFlow { send(fetchThis()) send(fetchThat()) }.buffer(someCapacity).shareIn(scope, SharingStarted.Lazily)
Flow
produce
shareIn
channelFlow
A modern programming language that makes developers happier.