0.0.1 • Published 2 months ago

add_repeater v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

RepeaterJs

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);
0.0.1

2 months ago

0.0.0

2 months ago