DispatchGroup Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Manages group of code blocks allows for aggregate synchronization.
public class DispatchGroup : CoreFoundation.DispatchObject
type DispatchGroup = class
inherit DispatchObject
- Inheritance
- Inheritance
Remarks
Code block can be executed on different dispatch queues but managed as a group.
Constructors
DispatchGroup() |
Properties
Handle | (Inherited from DispatchObject) |
Methods
Activate() | (Inherited from DispatchObject) |
Check() |
Obsolete.
(Inherited from DispatchObject)
|
Create() |
Creates a new dispatch group. |
DispatchAsync(DispatchQueue, Action) |
Submits a block to a dispatch queue and associates the block with the given dispatch group. |
Dispose() | (Inherited from DispatchObject) |
Dispose(Boolean) | (Inherited from DispatchObject) |
Enter() |
Explicitly sets that a code block is beeing managed by the group. |
Equals(Object) | (Inherited from DispatchObject) |
GetHashCode() |
Returns the hashcode for this object (Inherited from DispatchObject) |
InitializeHandle(IntPtr) | (Inherited from NativeObject) |
Leave() |
Releases a code block association with the group. |
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) | |
Release() | (Inherited from DispatchObject) |
Retain() | (Inherited from DispatchObject) |
SetTargetQueue(DispatchQueue) | (Inherited from DispatchObject) |
Wait(DispatchTime) |
Waits synchronously for all blocks in the group to complete or the specified timeout has elapsed. |
Wait(TimeSpan) |