Skip to content

Commit

Permalink
Merge pull request #434 from JetBrains/fix-asFlow-usov
Browse files Browse the repository at this point in the history
Fix SignalFlow
  • Loading branch information
Iliya-usov authored Aug 30, 2023
2 parents dde9f6a + 3dacab3 commit eade162
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SignalFlow<T>(private val signal: ISignal<T>) : Flow<T> {

override suspend fun collect(collector: FlowCollector<T>): Nothing {
Lifetime.using { lifetime ->
val channel = Channel<T>()
val channel = Channel<T>(Channel.UNLIMITED)
signal.advise(lifetime) {
channel.trySend(it)
}
Expand Down

0 comments on commit eade162

Please sign in to comment.