sequenceTaskResultM
List.sequenceTaskResultM
Namespace: FsToolkit.ErrorHandling
Function Signature:
Task<Result<'a, 'b>> list -> Task<Result<'a list, 'b>>
Note that sequence
is the same as traverse id
. See also List.traverseTaskResultM.
This is monadic, stopping on the first error.
This is the same as sequenceResultM except that it uses Task<Result<_,_>>
instead of Result<_,_>
.
See also Scott Wlaschin's Understanding traverse and sequence.
Examples
Last updated