cancel

open fun cancel()

Prevent all current applications of this timeout from firing. Use this when a time-limited operation should no longer be time-limited because the nature of the operation has changed.

This function does not mutate the deadlineNanoTime or timeoutNanos properties of this timeout. It only applies to active operations that are limited by this timeout, and applies by allowing those operations to run indefinitely.

Subclasses that override this method must call super.cancel().