Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (add_repeater) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
RepeaterJs
Todos:
- Ability to stop repeating or stop the loop (like "break" on loop constructs)
Repeat an action continuously for specified amount of times (or forever)
import Repeater from "./index";
const repeater = new Repeater(
() => {
console.log(new Date());
return Promise.resolve();
}
);
repeater.continuous(1000,null);import Repeater from "./index";
const repeater = new Repeater(
() => {
console.log(new Date());
return Promise.resolve();
},
{ logger: Repeater.voidLogger } // no logs
);
repeater.continuous(1000,null);