0.5.1 • Published 10 years ago
vse v0.5.1
DEPRECATED in favour of y-emitter
Very Simple Emitter
Sample usage:
var Vse = require('vse'),
walk = require('vz.walk'),
vse = new Vse();
vse.on('foo',function callback(data){
console.log(data);
vse.detach('foo',callback);
});
vse.fire('foo','bar'); // bar
walk(function*(){
var data = yield vse.until('foo');
console.log(data);
});
vse.fire('foo','bar'); // bar