Module: legio-async/interval

legio-async/interval

new (require("legio-async/interval"))(fn, time, wrapopt)

Parameters:
Name Type Attributes Default Description
fn function If bound, the first arguments contains the count of executions.
time Number
wrap Boolean <optional>
true Indicates if the given function should be bound to the interval object.
Source:
Source:

Methods

(static) start(time, immediatelyopt) → {Promise}

Parameters:
Name Type Attributes Default Description
time Number
immediately Boolean <optional>
false
Source:
Returns:
Type
Promise

activate(immediatelyopt, timeopt)

Parameters:
Name Type Attributes Default Description
immediately Boolean <optional>
false
time Number <optional>
this.time
Source:

suspend()

Clears the interval.
Source: