asynchronous callback extras and shortcuts for coffeescript / javascript
Call a function with signiture:
my_fn(arguments..., callback_fn)
Function returns asynchronous response by calling callback_fn
with signiture:
callback_fn(err, response_arguments...)
in which err is null or undefined unless an error-response is returned.
my_fn arg1, arg2, (err, response_arg1, response_arg2) ->
if err
# error path
else
next_async_fn arg_x, (err) ->
# ...
Callbax generates a function that has extensions providing extra functionality
(description and examples here)
(description and examples here)