swift-async-algorithms
swift-async-algorithms copied to clipboard
Merge provides all elements from the subsequences on cancellation
On cancellation, merge currently does not yield all elements. This leads to situations in which the final elements of AsyncStreams are not forwarded to the user. This patch ensures, that only the underlying Task is cancelled and all subsequences' elements are forwarded to the user.
We should apply the same to zip, debounce and co
@swift-ci please test
@phausler, @FranzBusch is there anything outstanding? Can we merge this?
@swift-ci please test
This looks good from my side. The CI failure is due to a broken nightly toolchain. @phausler If you are happy please merge it.