2.0.2 • Published 2 months ago

@rweich/webworker-timer v2.0.2

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

webworker-timer

Timers running inside webworkers.

  • no dependencies

Usage

This package exposes the following methods:

  • setTimeout
  • setInterval
  • clearTimeout
  • clearInterval

Just import the methods and use them like usual.

import { clearInterval, setInterval } from '@rweich/webworker-timer';

const interval = setInterval(
  () => console.log('interval called'),
  500
);

clearInterval(interval);
2.0.2

2 months ago

2.0.1

6 months ago

1.0.4

9 months ago

2.0.0

7 months ago

1.0.3

12 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago