ofJob

Namespace: FsToolkit.ErrorHandling

Transforms a Job<'T> into an Job<Result<'T, 'Error>>.

Function Signature

Job<'T> -> Job<Result<'T, 'Error>>

Examples

Example 1

let result = JobResult.ofJob (job { return 42 })
// job { return Ok 42 }

Last updated