Skip to content

T_CodeJam_Threading_AsyncOperationHelper

andrewvk edited this page Mar 31, 2016 · 7 revisions

AsyncOperationHelper Class

[This is preliminary documentation and is subject to change.]

Extension and utility methods for AsyncOperationManager ans AsyncOperation

Inheritance Hierarchy

System.Object
  CodeJam.Threading.AsyncOperationHelper
Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

[PublicAPIAttribute]
public static class AsyncOperationHelper

VB

<ExtensionAttribute>
<PublicAPIAttribute>
Public NotInheritable Class AsyncOperationHelper

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
[<PublicAPIAttribute>]
type AsyncOperationHelper =  class end

The AsyncOperationHelper type exposes the following members.

Methods

 

Name Description
Public methodStatic member CreateOperation Returns an AsyncOperation for tracking the duration of a particular asynchronous operation.
Public methodStatic member Post Invokes a runner on the thread or context appropriate for the application model.
Public methodStatic member PostOperationCompleted Ends the lifetime of an asynchronous operation.
Public methodStatic member RunAsync(Action(AsyncOperation)) Gets thread from pool and run runner inside it.
Public methodStatic member RunAsync(Action(AsyncOperation), Action) Gets thread from pool and run runner inside it.
Public methodStatic member Send(AsyncOperation, Action) Invokes a runner on the thread or context appropriate for the application model and waits for it completion.
Public methodStatic member Send(T)(AsyncOperation, Func(T)) Invokes a runner on the thread or context appropriate for the application model and returns result.
  Back to Top

See Also

Reference

CodeJam.Threading Namespace

Clone this wiki locally