-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
doc: clarify operation of napi_cancel_async_work #12974
Conversation
doc/api/n-api.md
Outdated
@@ -2931,11 +2931,12 @@ NAPI_EXTERN napi_status napi_cancel_async_work(napi_env env, | |||
|
|||
Returns `napi_ok` if the API succeeded. | |||
|
|||
This API cancels a previously allocated work, provided | |||
it has not yet been queued for execution. After this function is called | |||
This API cancels a previously queued work if it has not yet |
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.
Nit: a previously queued work
? Should that just be previously queued work
without the a
?
Nit: previously queued
-> previously-queued
or (even better IMO) just queued
doc/api/n-api.md
Outdated
@@ -2931,11 +2931,12 @@ NAPI_EXTERN napi_status napi_cancel_async_work(napi_env env, | |||
|
|||
Returns `napi_ok` if the API succeeded. | |||
|
|||
This API cancels a previously allocated work, provided | |||
it has not yet been queued for execution. After this function is called | |||
This API cancels a previously queued work if it has not yet |
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.
either drop 'a' or s/work/work item
doc/api/n-api.md
Outdated
the `complete` callback will be invoked with a status value of | ||
`napi_cancelled`. The work should not be deleted before the `complete` | ||
callback invocation, even when it was cancelled. | ||
callback invocation, even when it was successfully cancelled. |
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.
Nit: even when it was successfully cancelled
-> even if it has been successfully cancelled
?
Believe I have addressed @Trott 's comments and many approvals so going to land CI Run: https://ci.nodejs.org/job/node-test-pull-request/8090/ |
CI good, landing. |
Landed as: 1b28022 |
PR-URL: #12974 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jason Ginchereau <[email protected]>
PR-URL: nodejs#12974 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jason Ginchereau <[email protected]>
PR-URL: nodejs#12974 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jason Ginchereau <[email protected]>
Backport-PR-URL: #19447 PR-URL: #12974 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jason Ginchereau <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
doc, n-api