Skip to content

M_CodeJam_Threading_AsyncOperationHelper_RunAsync_1

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

AsyncOperationHelper.RunAsync Method (Action(AsyncOperation), Action)

Gets thread from pool and run runner inside it.

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

Syntax

C#

public static void RunAsync(
	Action<AsyncOperation> runner,
	Action completeHandler
)

VB

Public Shared Sub RunAsync ( 
	runner As Action(Of AsyncOperation),
	completeHandler As Action
)

F#

static member RunAsync : 
        runner : Action<AsyncOperation> * 
        completeHandler : Action -> unit 

Parameters

 

runner
Type: System.Action(AsyncOperation)
Action to run inside created thread.
completeHandler
Type: System.Action
Action called after runner complete execution. Synchronized with method calling thread.

See Also

Reference

AsyncOperationHelper Class
RunAsync Overload
CodeJam.Threading Namespace

Clone this wiki locally