Skip to content

appedemic/compound-signal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compound-signal

Dispatch after multiple signals are triggered.

Example:

var Signal = require('signals');
var CompoundSignal = require('compound-signal');

var s1 = new Signal();
var s2 = new Signal();

var cs = new CompoundSignal(s1, s2);

cs.add(function(argsS1, argsS2) {
  console.log(argsS1, argsS2);
});

s1.dispatch('from s1');
s2.dispatch();

About

Dispatch after multiple signals are triggered

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published