Class type Goog.Async.conditionalDelay
class type conditionalDelay = object..end
method isActive : bool Js.t Js.meth
method isDone : bool Js.t Js.meth
method onFailure : unit Js.meth
Called when this delayed call is cancelled because the timeout has been exceeded, and the listener has never returned true. Designed for inheritance, should be overridden by subclasses or on the instances if they care.
Do nothing by default
method onSuccess : unit Js.meth
Called when the listener has been successfully executed and returned true. The isDone method should return true by now. Designed for inheritance, should be overridden by subclasses or on the instances if they care.
method start : Js.number Js.t -> Js.number Js.t -> unit Js.meth
Starts the delay timer. The provided listener function will be called repeatedly after the specified interval until the function returns true or the timeout is exceeded. Calling start on an active timer will stop the timer first.
method stop : unit Js.meth
Stops the delay timer if it is active. No action is taken if the timer is not in use.