traverseAsyncResultA

Seq.traverseAsyncResultA

Namespace: FsToolkit.ErrorHandling

Function Signature:

('a -> Async<Result<'b,'c>>) -> 'a seq -> Async<Result<'b seq, 'c seq>>

Note that traverse is the same as map >> sequence. See also Seq.sequenceAsyncResultA.

This is applicative, collecting all errors.

This is the same as traverseResultA except that it uses Async<Result<_,_>> instead of Result<_,_>.

See also Scott Wlaschin's Understanding traverse and sequence.

Examples

Last updated