Skip to content

liuyunjs/timer

Repository files navigation

install


@npm: npm install @liuyunjs/timer -S

@yarn: yarn add @liuyunjs/timer

Quick


import {timeout, interval} from '@liuyunjs/timer';

const timer = timeout();
const timer2 = interval();

timer.set(() => console.log('hello world'), 1000);
timer.clear();

timer2.set(() => console.log('hello world'), 1000);
timer2.clear();

About

setTimeout setInterval 工具

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published