0.0.2 • Published 7 years ago
ya-stable-timer v0.0.2
ya-stable-timer
Yet another stable timer implementation using ended
event fired by AudioBufferSourceNode
Usage
import Timer from 'ya-stable-timer';
var t = new Timer(new AudioContext());
var id = t.setTimeout(fn, ms);
t.clearTimeout(id);
id = t.setInterval(fn, ms);
t.clearInterval(id);