Closed mbalex99 closed 9 years ago
I understand there is some inspiration from Baconjs.
Is there an interest to implement the "fromNodeCallback" method, so nodejs projects can integrate it with nodejs style async methods?
Looking at bacon, it seems straightforward:
Bacon.fromNodeCallback = liftCallback "fromNodeCallback", (f, args...) -> Bacon.fromBinder (handler) -> makeFunction(f, args)(handler) nop , (error, value) -> return [new Error(error), end()] if error [value, end()]
We need errors support for this (same as for https://github.com/pozadi/kefir/issues/10)
Ah understood! That's right. Noticed it just now. Thanks!
I understand there is some inspiration from Baconjs.
Is there an interest to implement the "fromNodeCallback" method, so nodejs projects can integrate it with nodejs style async methods?
Looking at bacon, it seems straightforward: