-
Notifications
You must be signed in to change notification settings - Fork 465
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
Implement AsyncProgressQueueWorker #585
Conversation
5908617
to
dc63ed8
Compare
Shall hold until we landed #589. |
@legendecas #589 has now landed so you can rebase/proceed. |
dc63ed8
to
01d157c
Compare
Discussed in last N-API team meeting, still one aspect to be completed, but @legendecas would like feedback on what is there so far. |
@nodejs/addon-api this is ready for review. |
ProgressData data{0}; | ||
for (int32_t idx = 0; idx < _times; idx++) { | ||
data.progress = idx; | ||
progress.Send(&data, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should copy here and free in the JS thread.
I'm not sure putting the doc for both classes into the same file make sense. I think it would stick to having one file to doc each class as we have for most classes. @NickNaso what do you think? |
I put them in a single doc file because they shared much similar behavior. It can be verbose if we separate those docs into different files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR-URL: #585 Fixes: #582 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]>
Landed as ab01844 |
According to git bisect, this causes #695. @legendecas, could you PTAL? |
PR-URL: nodejs/node-addon-api#585 Fixes: nodejs/node-addon-api#582 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]>
PR-URL: nodejs/node-addon-api#585 Fixes: nodejs/node-addon-api#582 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]>
PR-URL: nodejs/node-addon-api#585 Fixes: nodejs/node-addon-api#582 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]>
PR-URL: nodejs/node-addon-api#585 Fixes: nodejs/node-addon-api#582 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]>
Although this patch comes along with a lot of changes on either
Napi::AsyncWorker
andNapi::AsyncProgressWorker
, there are no changes in the existing code expected. (i.e. tests ofNapi::AsyncWorker
andNapi::AsyncProgressWorker
shall pass without any modification)Fixes: #582