cancelPreviousPerformRequests(withTarget:)
Cancels perform requests previously registered with the Perform(_:with:afterdelay:) instance method.
Declaration
class func cancelPreviousPerformRequests(withTarget aTarget: Any)Parameters
- aTarget:
The target for requests previously registered with the Perform(_:with:afterdelay:) instance method.
Discussion
All perform requests having the same target aTarget are canceled. This method removes perform requests only in the current run loop, not all run loops.
See Also
Sending Messages
perform(_:with:afterDelay:)perform(_:with:afterDelay:inModes:)performSelector(onMainThread:with:waitUntilDone:)performSelector(onMainThread:with:waitUntilDone:modes:)perform(_:on:with:waitUntilDone:)perform(_:on:with:waitUntilDone:modes:)performSelector(inBackground:with:)cancelPreviousPerformRequests(withTarget:selector:object:)