Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
An "async listener" concept for EventEmitters. When the listener has a callback function in its arguments list, then it is doing async work

shesek commented Jul 7, 2013

Very cool! Checking the function's signature length to detect if its an async listener or not is pretty clever.

I wrote something very similar in CoffeeScript the other day and stumbled here while looking for it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment