lock(before:)
Attempts to acquire a lock before a given date.
Declaration
func lock(before limit: Date) -> BoolParameters
- limit:
The time before which the lock should be acquired.
Return Value
Discussion
The thread is blocked until the receiver acquires the lock or limit is reached.
See Also
Related Documentation
- Threading Programming Guide