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.
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. |
|
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 <michael_dawson@ca.ibm.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: nodejs/node-addon-api#585 Fixes: nodejs/node-addon-api#582 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: nodejs/node-addon-api#585 Fixes: nodejs/node-addon-api#582 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: nodejs/node-addon-api#585 Fixes: nodejs/node-addon-api#582 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Although this patch comes along with a lot of changes on either
Napi::AsyncWorkerandNapi::AsyncProgressWorker, there are no changes in the existing code expected. (i.e. tests ofNapi::AsyncWorkerandNapi::AsyncProgressWorkershall pass without any modification)Fixes: #582