Cancels the specified time observer.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 6.0+
The time observer to be cancelled.
Use this method to explicitly cancel time observers added using
Upon return, the caller is guaranteed that no new time observer blocks will begin executing. Depending on the calling thread and the queue used to add the time observer, an in-flight block may continue to execute after this method returns. You can guarantee synchronous time observer removal by enqueuing the call to
remove on that queue. Call
remove to wait for any in-flight blocks to finish executing.