An adaptor to convert EventEmitter events into an error-first callback invocations.
Fast in-process message conduit.
Thoughts, really. Names are qualified by
var signal = require'signal'signalsubscribe'.bigeasy.paxos.log'split'.'console.log level: level message: messagesignalsubscribe'.bigeasy.paxos.log.error'split'.'console.log level: level message: messagesignalsubscribe'.*.*.log'split'.'console.log level: level message: message
When you send a message you actually get an array of listeners and send the
message directly. This means you can call the listeners directly. There is no
applying of your arguments. They go directly to the
listener. This makes them all targets for compilation by the JIT compiler.
var signal = require'signal'funtion logInfo messagevar subscribers = signalsubscribers'.bigeasy.paxos.log'split'.'for var i = 0 I = subscriberslength; i < I i++subscribersi'info' key: 'value'
Signal is meant to be the least commitment for late binding. It is easy on the
subscriber, hard on the publisher. If you're not a fanatic about performance,
then you can use
var signal = require'signal'funtion logInfo messagesignalsubscribers'.bigeasy.paxos.log'emit'info' message
But if you do care, for a high-volume message the performance is going to be much better running through the loop yourself.
There are no error handling conventions as of yet. The naming convention is based on your GitHub name and the project name.
Signal has a single object to simplify service discovery. This means that all your modules must use the same version of Signal.
Subscribe to a message with the given listener. The listener can be anything, including an object or perhaps a connect string for a message queue. The type of listener is publisher dependent.