AsyncBuilder Type
The type of the async
operator, used to build workflows for asynchronous computations.
Instance members
Instance member |
Description
|
Full Usage:
this.Bind
Parameters:
Async<'T>
-
The computation to provide an unbound result.
binder : 'T -> Async<'U>
-
The function to bind the result of computation .
Returns: Async<'U>
An asynchronous computation that performs a monadic bind on the result
of computation .
Modifiers: inline Type parameters: 'T, 'U |
Creates an asynchronous computation that runs
A cancellation check is performed when the computation is executed.
The existence of this method permits the use of
|
Full Usage:
this.Combine
Parameters:
Async<unit>
-
The first part of the sequenced computation.
computation2 : Async<'T>
-
The second part of the sequenced computation.
Returns: Async<'T>
An asynchronous computation that runs both of the computations sequentially.
Modifiers: inline Type parameters: 'T |
Creates an asynchronous computation that first runs
A cancellation check is performed when the computation is executed.
The existence of this method permits the use of expression sequencing in the
|
|
|
Full Usage:
this.For
Parameters:
'T seq
-
The sequence to enumerate.
body : 'T -> Async<unit>
-
A function to take an item from the sequence and create
an asynchronous computation. Can be seen as the body of the for expression.
Returns: Async<unit>
An asynchronous computation that will enumerate the sequence and run body
for each element.
|
Creates an asynchronous computation that enumerates the sequence
A cancellation check is performed on each iteration of the loop.
The existence of this method permits the use of |
Full Usage:
this.Return
Parameters:
'T
-
The value to return from the computation.
Returns: Async<'T>
An asynchronous computation that returns value when executed.
Modifiers: inline Type parameters: 'T |
Creates an asynchronous computation that returns the result
A cancellation check is performed when the computation is executed.
The existence of this method permits the use of
|
|
|
Full Usage:
this.TryFinally
Parameters:
Async<'T>
-
The input computation.
compensation : unit -> unit
-
The action to be run after computation completes or raises an
exception (including cancellation).
Returns: Async<'T>
An asynchronous computation that executes computation and compensation afterwards or
when an exception is raised.
Modifiers: inline Type parameters: 'T |
Creates an asynchronous computation that runs
A cancellation check is performed when the computation is executed.
The existence of this method permits the use of
|
Full Usage:
this.TryWith
Parameters:
Async<'T>
-
The input computation.
catchHandler : exn -> Async<'T>
-
The function to run when computation throws an exception.
Returns: Async<'T>
An asynchronous computation that executes computation and calls catchHandler if an
exception is thrown.
Modifiers: inline Type parameters: 'T |
Creates an asynchronous computation that runs
A cancellation check is performed when the computation is executed.
The existence of this method permits the use of
|
|
Creates an asynchronous computation that runs
A cancellation check is performed when the computation is executed.
The existence of this method permits the use of
|
Full Usage:
this.While
Parameters:
unit -> bool
-
The function to determine when to stop executing computation .
computation : Async<unit>
-
The function to be executed. Equivalent to the body
of a while expression.
Returns: Async<unit>
An asynchronous computation that behaves similarly to a while loop when run.
|
Creates an asynchronous computation that runs
A cancellation check is performed whenever the computation is executed.
The existence of this method permits the use of |
Creates an asynchronous computation that just returns
A cancellation check is performed when the computation is executed.
The existence of this method permits the use of empty |