y-timers

1.1.11 • Public • Published

Timers

Sample usage

var walk = require('y-walk'),
    
    wait = require('y-timers/wait'),
    tick = require('y-timers/tick'),
    frame = require('y-timers/frame');
 
walk(function*(){
  
  yield wait(100);
  console.log('100 msecs have passed');
  
  yield tick();
  console.log('A tick has passed');
  
  yield frame();
  console.log('A frame is about to be painted');
  
});

Readme

Keywords

none

Package Sidebar

Install

npm i y-timers

Weekly Downloads

10

Version

1.1.11

License

Apache-2.0

Last publish

Collaborators

  • manvalls