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

1.0.4 • Public • Published

Getting Started

npm install wtimer

Example

import createInterval from 'wtimer';

// init
const wtimer = createInterval(10); // 10ms interval in worker

// set interval
const p = wtimer.setInterval(() => {
  console.log('Hello World');
}, 1000);
// clear interval
wtimer.clearInterval(p);

// clear all interval
wtimer.terminate();

Readme

Keywords

Package Sidebar

Install

npm i wtimer

Weekly Downloads

1

Version

1.0.4

License

SEE LICENSE IN LISCENSE

Unpacked Size

25.4 kB

Total Files

6

Last publish

Collaborators

  • langhuihui