sequenceTaskResultA

List.sequenceTaskResultA

Namespace: FsToolkit.ErrorHandling

Function Signature:

Task<Result<'a, 'b>> list -> Task<Result<'a list, 'b list>>

Note that sequence is the same as traverse id. See also List.traverseTaskResultA.

This is applicative, collecting all errors.

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

See also Scott Wlaschin's Understanding traverse and sequence.

Examples

Last updated