Open Multiply opened 9 years ago
This is probably way better than #14, it's the Node.js way to do things.
Thanks for the suggestion, I'll keep it in mind.
Better if returns a promise, a callback that doesn't have err
as first parameter is not standard and not yield
able :)
Looks like we have no err to report, and having always nil seems unnecessary
I'm still not sure how I should handle this, but I think it would be best to use callbacks with a delay in the C code. This way the commands are chainable, the delay is non-blocking, and we won't run into any OS limitations.
callbacks :+1:
Will be this feature implemented in any future releases ?
Promises, async/await 👍
I want to do something like
Would this be possible to do for all methods, so we can chain them properly, and so the methods are not blocking.