项目作者: youpy

项目描述 :
Yet another stable timer implementation using `ended` event fired by AudioBufferSourceNode
高级语言: JavaScript
项目地址: git://github.com/youpy/taimaa.git
创建时间: 2016-12-28T06:00:32Z
项目社区:https://github.com/youpy/taimaa

开源协议:

下载


taimaa Node.js CI

taima

Yet another stable timer implementation using ended event fired by AudioBufferSourceNode

install

  1. $ npm install taimaa

Usage

  1. import Timer from "taimaa";
  2. var t = new Timer(new AudioContext());
  3. var id;
  4. id = t.setTimeout(fn, ms);
  5. t.clearTimeout(id);
  6. id = t.setInterval(fn, ms);
  7. t.clearInterval(id);