File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2931,11 +2931,12 @@ NAPI_EXTERN napi_status napi_cancel_async_work(napi_env env,
2931
2931
2932
2932
Returns ` napi_ok ` if the API succeeded.
2933
2933
2934
- This API cancels a previously allocated work, provided
2935
- it has not yet been queued for execution. After this function is called
2934
+ This API cancels queued work if it has not yet
2935
+ been started. If it has already started executing, it cannot be
2936
+ cancelled and ` napi_generic_failure ` will be returned. If successful,
2936
2937
the ` complete ` callback will be invoked with a status value of
2937
2938
` napi_cancelled ` . The work should not be deleted before the ` complete `
2938
- callback invocation, even when it was cancelled.
2939
+ callback invocation, even if it has been successfully cancelled.
2939
2940
2940
2941
2941
2942
[ Aynchronous Operations ] : #n_api_asynchronous_operations
You can’t perform that action at this time.
0 commit comments