Closed onism0106 closed 3 weeks ago
Hi @onism0106 👋 Thanks for opening an issue!
emit.forEach
will only complete when the provided stream is closed. In this case, it sounds like the _audioPlayer.playerStateStream
is not closed so you'll probably want to combine the two streams into one and then use emit.ForEach
on the combined stream. You can use something like combineLatest2 from package:rxdart
or write your own.
Hope that helps!
I need listen to the play state and play progress of a music player. These belong to two different streams. When I use await on the first emit.forEach(), the second emit.forEach does not work.