Edit

Share via


DispatchGroup.Notify Method

Definition

Overloads

Notify(DispatchQueue, DispatchBlock)
Notify(DispatchQueue, Action)

Schedule a block to be submitted to a queue when all the blocks associated with a group have completed.

Notify(DispatchQueue, DispatchBlock)

public void Notify (CoreFoundation.DispatchQueue queue, CoreFoundation.DispatchBlock block);
member this.Notify : CoreFoundation.DispatchQueue * CoreFoundation.DispatchBlock -> unit

Parameters

Applies to

Notify(DispatchQueue, Action)

Schedule a block to be submitted to a queue when all the blocks associated with a group have completed.

public void Notify (CoreFoundation.DispatchQueue queue, Action action);
member this.Notify : 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 when the group completes.

Remarks

This function schedules a notification block to be submitted to the specified queue once all blocks associated with the dispatch group have completed.

If no blocks are associated with the dispatch group (i.e. the group is empty) then the notification block will be submitted immediately.

The group will be empty at the time the notification block is submitted to the target queue.

Applies to