Attempts to acquire a lock before a given date.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The time before which the lock should be acquired.
true if the lock is acquired before
The thread is blocked until the receiver acquires the lock or
limit is reached.