Skip to content

M_CodeJam_Threading_AsyncOperationHelper_Send

Andrew Koryavchenko edited this page Jun 17, 2018 · 6 revisions

AsyncOperationHelper.Send Method (AsyncOperation, Action)

Invokes a runner on the thread or context appropriate for the application model and waits for it completion.

Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static void Send(
	this AsyncOperation asyncOp,
	Action runner
)

VB

<ExtensionAttribute>
Public Shared Sub Send ( 
	asyncOp As AsyncOperation,
	runner As Action
)

F#

[<ExtensionAttribute>]
static member Send : 
        asyncOp : AsyncOperation * 
        runner : Action -> unit 

Parameters

 

asyncOp
Type: System.ComponentModel.AsyncOperation
runner
Type: System.Action
A Action that wraps the delegate to be called when the operation ends.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AsyncOperation. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

AsyncOperationHelper Class
Send Overload
CodeJam.Threading Namespace

Clone this wiki locally