Member | Description |
member Bind : p:Async<'a> * f:('a -> Async<'b>) -> Async<'b> |
Generate an asynchronous computation that, when run, runs 'p', and when
'p' generates a result 'res', runs 'f res'.
|
member
BindUsing : presource:Async<'a> * ('a -> Async<'b>) -> Async<'b>
when 'a :> IDisposable |
Generate asynchronous computation that, when run, firs runs 'presource' to produce
a result 'resource', and then runs 'f(resource)'.
The action 'resource.Dispose()' is executed as the second computation yields its result
or if the asynchronous computation exits by an exception or by cancellation.
|
member Combine : p1:Async<unit> * p2:Async<'a> -> Async<'a> |
Generate an asynchronous computation that, when run, first runs 'p1' and then runs 'p2', returning the result of 'p2'.
|
member Delay : f:(unit -> Async<'a>) -> Async<'a> |
Generate an asynchronous computation that, when run, runs 'f()'
|
member For : seq:#seq<'a> * f:('a -> Async<unit>) -> Async<unit> |
Generate an asynchronous computation that, when run, enumerates the sequence 'seq'
on demand and runs 'f' for each element.
|
member Let : v:'a * f:('a -> Async<'b>) -> Async<'b> |
Generate an asynchronous computation that, when run, runs 'f v'
|
member Return : v:'a -> Async<'a> |
Generate an asynchronous computation that, when run, returns the result 'v'
|
member TryFinally : p:Async<'a> * (unit -> unit) -> Async<'a> |
Generate an asynchronous computation that, when run, runs 'p'. The action 'f' is executed
after 'p' completes, whether 'p' exits normally or by an exception. If 'f' raises an exception itself
the original exception is discarded and the new exception becomes the overall result of the computation.
|
member TryWith : p:Async<'a> * f:(exn -> Async<'a>) -> Async<'a> |
Generate an asynchronous computation that, when run, runs 'p' and returns its result.
If an exception happens then 'f(exn)' is called and the resulting computation executed instead.
|
member
Using : resource:'a * f:('a -> Async<'b>) -> Async<'b> when 'a :> IDisposable |
Generate asynchronous computation that, when run, runs 'f(resource)'.
The action 'resource.Dispose()' is executed as this computation yields its result
or if the asynchronous computation exits by an exception or by cancellation.
|
member While : gd:(unit -> bool) * p:Async<unit> -> Async<unit> |
Generate an asynchronous computation that, when run, runs 'p' repeatedly
until 'gd()' becomes false.
|
member Zero : unit -> Async<unit> |
Generate an asynchronous computation that, when run, just returns '()'
|