Operators
TaskResult Infix Operators
Namespace: FsToolkit.ErrorHandling.Operator.TaskResult
FsToolkit.ErrorHandling provides the standard infix operators for the map
(<!>
), apply
(<*>
), and bind
(>>=
) functions of the Task<Result<_,_>>
type.
Examples:
Example 1
Expanding on the TaskResult.map2 example, we define another function:
We can then rewrite the example and additionally call notifyFollowers
using the operators as below:
Last updated