kotlinx.coroutines
kotlinx.coroutines copied to clipboard
Introduce Flow.any, Flow.all, Flow.none
As discussed in #4212.
This is my first proper contribution to Coroutines, so please be nice :)
At this stage, my goals are: • Optimal API surface • Correctness
I have not made any attempts to improve performance. In particular, I wouldn't be surprised if any could be improved. I believe all and none are optimal.
I took inspiration from other tests, which seem to use expect(Int) and finish(Int), but I'm not completely sure what they're for nor how to use them, so I didn't. Please let me know if they are necessary.
@CLOVIS-AI would you like to continue this PR or should we handle it from here?
I would love to, but sadly my schedule doesn't allow me too… Feel free to make the changes you want if I'm too slow :)
Closed in favor of #4304