Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 328 Bytes

File metadata and controls

22 lines (13 loc) · 328 Bytes

AsyncResult.error

Namespace: FsToolkit.ErrorHandling

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

Function Signature:

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

Examples

Example 1

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