Edytuj

Udostępnij za pośrednictwem


DispatchGroup.DispatchAsync(DispatchQueue, Action) Method

Definition

Submits a block to a dispatch queue and associates the block with the given dispatch group.

public void DispatchAsync (CoreFoundation.DispatchQueue queue, Action action);
member this.DispatchAsync : CoreFoundation.DispatchQueue * Action -> unit

Parameters

queue
DispatchQueue

The dispatch queue to which the block will be submitted for asynchronous invocation.

action
Action

The action to invoke asynchronously.

Remarks

Submits a block to a dispatch queue and associates the block with the given dispatch group. The dispatch group may be used to wait for the completion of the blocks it references.

Applies to