Open sandboxFocus

Method Dispatch

Dispatch(WaitCallback, object?, bool)

Queues a work item.

Declaration
void Dispatch(WaitCallback workItem, object? state, bool flowExecutionContext = true)
Parameters
Type Name Description
WaitCallback workItem

The delegate to execute.

object state

The object passed to workItem.

bool flowExecutionContext

true to flow the execution context of the calling thread to the work item, false to execute the work item without it.