Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Dispatch after multiple signals are triggered
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
dist
src
.gitignore
LICENSE
README.md
package.json

README.md

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();
Something went wrong with that request. Please try again.