swift-async-algorithms icon indicating copy to clipboard operation
swift-async-algorithms copied to clipboard

Implement AsyncMapErrorSequence

Open clive819 opened this issue 1 year ago • 0 comments

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) }

clive819 avatar Jul 30 '24 02:07 clive819