-
Notifications
You must be signed in to change notification settings - Fork 462
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
Allow overriding AsyncWorker::OnWorkComplete etc #582
Comments
This was referenced Nov 2, 2019
Closed with #589 |
mhdawson
pushed a commit
that referenced
this issue
Mar 18, 2020
PR-URL: #585 Fixes: #582 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]>
kevindavies8
added a commit
to kevindavies8/node-addon-api-Develop
that referenced
this issue
Aug 24, 2022
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]>
Marlyfleitas
added a commit
to Marlyfleitas/node-api-addon-Development
that referenced
this issue
Aug 26, 2022
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]>
wroy7860
added a commit
to wroy7860/addon-api-benchmark-node
that referenced
this issue
Sep 19, 2022
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]>
johnfrench3
pushed a commit
to johnfrench3/node-addon-api-git
that referenced
this issue
Aug 11, 2023
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]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As for now,
AsyncWorker::OnWorkComplete
andAsyncWorker::OnExecute
was declared as a static private method. We could make a global static function to accept an arbitrary AsyncWorker variant and invoke its ownOnWorkComplete
andOnExecute
to make override possible.This would be a blocking issue to implement AsyncProgressQueueWorker, which expects a queue cleanup before invoking either
OnOk
andOnError
inOnWorkComplete
.The text was updated successfully, but these errors were encountered: