Class: Interval

@bldr/vue-plugin-media~Interval

Wrapper class around the function setInterval to store the ids returned by the function to be able to clear the function.

new Interval ()

Methods

clear ()

Cancel a timed, repeating action which was previously established by a call to set().

set (func, delay)

Repeatedly call a function.

Name Type Description
func function

A function to be executed every delay milliseconds.

delay Number

The time, in milliseconds (thousandths of a second), the timer should delay in between executions of the specified function or code.