Class: shaka.util.DelayedTick

Constructor

new DelayedTick(onTick)

Parameters:
Name Type Description
onTick function
Source:

Members

(private, nullable) cancelPending_ :?function()

Type:
  • ?function()
Source:

(private) onTick_ :function()

Type:
  • function()
Source:

Methods

stop()

Cancel any pending calls to |onTick|. If there are no pending calls to |onTick|, this will be a no-op.
Source:

tickAfter(delayInSeconds) → (non-null) {shaka.util.DelayedTick}

Call |onTick| after |delayInSeconds| has elapsed. If there is already a pending call to |onTick|, the pending call will be canceled.
Parameters:
Name Type Description
delayInSeconds number
Source:
Returns:
Type
shaka.util.DelayedTick