-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create async loops #2
Comments
So, the worker is deleted as a result of But, you might want to reconsider what you're doing, perhaps you want your JS code to be triggering the re-runs rather than having the C++ side dictating when the loops occur. Another alternative is to use polling, if you dare and have some kind of socket to react to, like the zmq module does: https://github.com/JustinTulloss/zeromq.node/blob/master/binding.cc#L355 (and I do this in node-libssh too but it's much cleaner in the zmmq one). |
Thanks @rvagg :-) |
I want to execute the NanAsyncWorker again after HandleOKCallback, to do a async loop.
For example to read from a device ;-)
How would you recommend to do that? Sorry I'm not really good in C++... :-(
PS. thanks for nan, it's cool...
The text was updated successfully, but these errors were encountered: