-
Notifications
You must be signed in to change notification settings - Fork 287
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
Async API #26
Comments
@kjvalencik Can you please clarify what you mean by “an async API”? |
Maybe I'm missing something (I'm a noob at Rust), but there doesn't appear to be a way to safely accept a callback, grab a libuv thread for execution and stop blocking the event loop. https://github.com/nodejs/nan#nancallback If it is possible, an example would be excellent! Thanks. |
Yep, we'll definitely need something like that. One of my near-term plans is to sketch up an API road map. |
Whats the current Status on this and how would you like to see this implemented? It mostly comes down to, how you would like to see Callback and AsyncWorker to be interfaced by Rust. Especially AsyncWorker is really tricky. |
@Drakulix I'm getting ready to start looking into this, but I haven't used Nan's AsyncWorker etc. Can you help get me up to speed? Where should I go to learn more about them (other than the API docs, of course)? |
@dherman If you have questions, I should be able to answer them. |
@dherman Maybe this resource is useful? http://blog.scottfrees.com/c-processing-from-node-js-part-4-asynchronous-addons |
Maybe would it be possible by chaining scopes like this:
|
What is the current status on this? |
@loyd It's working its way up my priority queue but not at the top just yet—I've been focused on Electron support first. I haven't dropped this but can't give an ETA just yet, I'm afraid… |
I think this is implemented by #214 and can be closed. |
@kjvalencik Agreed! \o/ |
Any plans for an async API? Any road blocks that you would anticipate?
Great module! Cheers.
The text was updated successfully, but these errors were encountered: