Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 318 Bytes

File metadata and controls

22 lines (13 loc) · 318 Bytes

JobResult.error

Namespace: FsToolkit.ErrorHandling

Lift an 'error value into an Job<Result<'ok, 'error>>

Function Signature:

'error -> Job<Result<'ok, 'error>>

Examples

Example 1

let result : Job<Result<int, string>> =
  JobResult.error "Something bad happened"