Last active
September 30, 2015 14:57
-
-
Save TooTallNate/1811707 to your computer and use it in GitHub Desktop.
An "async listener" concept for EventEmitters. When the listener has a callback function in its arguments list, then it is doing async work
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 :)