Blocks the current thread until the condition is signaled or the specified time limit is reached.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The time at which to wake up the thread if the condition has not been signaled.
YES if the condition was signaled; otherwise,
NO if the time limit was reached.
You must lock the receiver prior to calling this method.