ofUnit

Namespace: FsToolkit.ErrorHandling

Transforms a Task into a Task<unit>

Function Signature

Task -> Task<unit>

Examples

Example 1

let result = Task.ofUnit (task { return () })
// task { return () }

Last updated