swift-async-algorithms
swift-async-algorithms copied to clipboard
Implement AsyncMapErrorSequence
Post: https://forums.swift.org/t/pitch-map-error/75422
Pretty much the same as Combine.Publisher.mapError but for AsyncSequence.
This enables you to do something like this:
let sequence = myAsyncSequence.mapError { MyGenericError(wrappedError: $0) }