Class: Repeater

js-whatever/js/repeater. Repeater

new Repeater(f, interval)

Wrapper around setTimeout that allows for the control of the timeout

Parameters:
Name Type Description
f function

The function to be called

interval number

The number of milliseconds between invocations of f

Source:

Methods

start() → {Repeater}

Starts the timeout. If it has already started, this will reset the timeout

Source:
Returns:

this

Type
Repeater

stop() → {Repeater}

Stops the timeout

Source:
Returns:

this

Type
Repeater

update() → {Repeater}

Calls the provided function

Source:
Returns:

this

Type
Repeater
Copyright 2013-2018 Micro Focus International plc. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Documentation generated by JSDoc 3.4.3 on Thu Jun 21st 18:04 2018 using the DocStrap template.