项目作者: youpy
项目描述 :
Yet another stable timer implementation using `ended` event fired by AudioBufferSourceNode
高级语言: JavaScript
项目地址: git://github.com/youpy/taimaa.git
taimaa 

Yet another stable timer implementation using ended
event fired by AudioBufferSourceNode
install
$ npm install taimaa
Usage
import Timer from "taimaa";
var t = new Timer(new AudioContext());
var id;
id = t.setTimeout(fn, ms);
t.clearTimeout(id);
id = t.setInterval(fn, ms);
t.clearInterval(id);