Member | Description |
|---|
AsBeginEnd | Creates three functions that can be used to implement the .NET Asynchronous Programming Model (APM) for a given asynchronous computation. |
AwaitEvent | Creates an asynchronous computation that waits for a single invocation of a CLI event by adding a handler to the event. Once the computation completes or is cancelled, the handler is removed from the event. |
AwaitIAsyncResult | Creates an asynchronous computation that will wait on the IAsyncResult. |
AwaitWaitHandle | Creates an asynchronous computation that will wait on the given WaitHandle. |
CancelDefaultToken | Raises the cancellation condition for the most recent set of asynchronous computations started without any specific CancellationToken. Replaces the global CancellationTokenSource with a new global token source for any asynchronous computations created after this point without any specific CancellationToken. |
CancellationToken | Creates an asynchronous computation that returns the CancellationToken governing the execution of the computation. |
Catch | Creates an asynchronous computation that executes computation. If this computation completes successfully then return Choice1Of2 with the returned value. If this computation raises an exception before it completes then return Choice2Of2 with the raised exception. |
DefaultCancellationToken | Gets the default cancellation token for executing asynchronous computations. |
FromBeginEnd | Creates an asynchronous computation in terms of a Begin/End pair of actions in the style used in CLI APIs. This overlaod should be used if the operation is qualified by three arguments. For example, Async.FromBeginEnd(arg1,arg2,arg3,ws.BeginGetWeather,ws.EndGetWeather) When the computation is run, beginFunc is executed, with a callback which represents the continuation of the computation. When the callback is invoked, the overall result is fetched using endFunc. |
FromBeginEnd | Creates an asynchronous computation in terms of a Begin/End pair of actions in the style used in CLI APIs. This overlaod should be used if the operation is qualified by two arguments. For example, Async.FromBeginEnd(arg1,arg2,ws.BeginGetWeather,ws.EndGetWeather) When the computation is run, beginFunc is executed, with a callback which represents the continuation of the computation. When the callback is invoked, the overall result is fetched using endFunc. |
FromBeginEnd | Creates an asynchronous computation in terms of a Begin/End pair of actions in the style used in CLI APIs. This overlaod should be used if the operation is qualified by one argument. For example, Async.FromBeginEnd(place,ws.BeginGetWeather,ws.EndGetWeather) When the computation is run, beginFunc is executed, with a callback which represents the continuation of the computation. When the callback is invoked, the overall result is fetched using endFunc. |
FromBeginEnd | Creates an asynchronous computation in terms of a Begin/End pair of actions in the style used in CLI APIs. For example, Async.FromBeginEnd(ws.BeginGetWeather,ws.EndGetWeather) When the computation is run, beginFunc is executed, with a callback which represents the continuation of the computation. When the callback is invoked, the overall result is fetched using endFunc. |
FromContinuations | Creates an asynchronous computation that captures the current success, exception and cancellation continuations. The callback must eventually call exactly one of the given continuations. |
Ignore | Creates an asynchronous computation that runs the given computation and ignores its result. |
OnCancel | Generates a scoped, cooperative cancellation handler for use within an asynchronous workflow. |
Parallel | Creates an asynchronous computation that executes all the given asynchronous computations, initially queueing each as work items and using a fork/join pattern. |
RunSynchronously | Runs the asynchronous computation and await its result. |
Sleep | Creates an asynchronous computation that will sleep for the given time. This is scheduled using a System.Threading.Timer object. The operation will not block operating system threads for the duration of the wait. |
Start | Starts the asynchronous computation in the thread pool. Do not await its result. |
StartChild | Starts a child computation within an asynchronous workflow. This allows multiple asynchronous computations to be executed simultaneously. |
StartImmediate | Runs an asynchronous computation, starting immediately on the current operating system thread. |
StartWithContinuations | Runs an asynchronous computation, starting immediately on the current operating system thread. Call one of the three continuations when the operation completes. |
SwitchToContext | Creates an asynchronous computation that runs its continuation using syncContext.Post. If syncContext is null then the asynchronous computation is equivalent to SwitchToThreadPool(). |
SwitchToNewThread | Creates an asynchronous computation that creates a new thread and runs its continuation in that thread. |
SwitchToThreadPool | Creates an asynchronous computation that queues a work item that runs its continuation. |
TryCancelled | Creates an asynchronous computation that executes computation. If this computation is cancelled before it completes then the computation generated by running compensation is executed. |