add_repeater

0.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i add_repeater

      Weekly Downloads

      0

      Version

      0.0.1

      License

      ISC

      Unpacked Size

      5.08 kB

      Total Files

      7

      Last publish

      Collaborators

      • albertdiones