f5io / bonobo-js

A work-monkey to do your dirty business.
38 stars 4 forks source link

promises? #9

Open alisman opened 8 years ago

alisman commented 8 years ago

It would be nice if the run method accepted a callback or returned a promise so that associating calls and emitted events could be abstracted away. This was easy enough to do in a wrapper, but it would be a nice feature of the library itself. It there and I'm missing it? And if not, would you accept a pull request around that?

f5io commented 8 years ago

This is a nice idea, and yes I would accept a pull request for this feature. Should be reasonably easy to implement.

I am quite happy for you to go ahead ;)