Async loop implementation
import { AsyncLoop } from '@biorate/async-loop';(async () => { let i = 0; const loop = new AsyncLoop( () => { console.log(++i); // 1, 2, 3 ... e.t.c }, console.error, 1000, );})(); Copy
import { AsyncLoop } from '@biorate/async-loop';(async () => { let i = 0; const loop = new AsyncLoop( () => { console.log(++i); // 1, 2, 3 ... e.t.c }, console.error, 1000, );})();
Optional
Rest
Private
Protected
Generated using TypeDoc
Description
Async loop implementation
Example