Attempts to acquire a lock before a specified moment in time.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The condition to match on.
The date by which the lock must be acquired or the attempt will time out.
YES if the lock is acquired within the time limit,
The receiver’s condition must be equal to
condition before the locking operation will succeed. This method blocks the thread’s execution until the lock can be acquired or
limit is reached.