wait(timeout:)
Waits synchronously for the previously submitted work to complete, and returns if the work is not completed before the specified timeout period has elapsed.
Declaration
func wait(timeout: DispatchTime) -> DispatchTimeoutResultParameters
- timeout:
The latest time to wait for a group to complete.
Return Value
A result value indicating whether the method returned due to a timeout.