AsyncThrowingStream.init(unfolding:) has no onCancel parameter

I just noticed a discrepancy in the AsyncStream APIs:

The proposal SE-0314: AsyncStream and AsyncThrowingStream proposes the init(unfolding:onCancel:) variant for both stream types, so not having it on AsyncThrowingStream looks like an oversight?

3 Likes

Sounds like an omission, please file an issue on GitHub - swiftlang/swift: The Swift Programming Language please?

1 Like

Done: AsyncThrowingStream.init(unfolding:) has no onCancel parameter · Issue #77974 · swiftlang/swift · GitHub

1 Like