wing-timer
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

wing-timer

Install

$ npm install wing-timer

Usage

import { Timeout, Interval } from 'wing-timer';

const timer = new Timeout(1000, () => {
  console.log('Timeout timer excuted.');
});

function start() {
  timer.start();
}

function stop() {
  if (timer.excuted) timer.clear();
}

Package Sidebar

Install

npm i wing-timer

Weekly Downloads

4

Version

0.0.2

License

Apache-2.0

Unpacked Size

17 kB

Total Files

7

Last publish

Collaborators

  • wadlay