Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Latest commit

 

History

History
47 lines (24 loc) · 635 Bytes

README.md

File metadata and controls

47 lines (24 loc) · 635 Bytes
var group = require("group"),
EventEmitter = require("events").EventEmitter;



var emGroup = group(EventEmitter);
emGroup.add(new EventEmitter());
emGroup.add(new EventEmitter(), new EventEmitter());

emGroup.on("test", function() {
  
});

group(emGroup.on("test", function(){})).dispose(); //wrapped method
var group = require("group");

var EmitterGroup = group.flow({
	"par each": ["on", "emit"]
}).
pre("on", function(item, next) {
	
}).
pos("emit", function() {
	
}).
create();



var eg = new EmitterGroup([new EventEmitter(), new EventEmitter()]);
eg.on("emit", function() {
	
});