@@ -79,7 +79,7 @@ the `Napi::AsyncWorker::OnOK` callback.
79
79
80
80
Sets the error message for the error that happened during the execution. Setting
81
81
an error message will cause the ` Napi::AsyncWorker::OnError ` method to be
82
- invoked instead of ` Napi::AsyncWorker::OnOKOnOK ` once the
82
+ invoked instead of ` Napi::AsyncWorker::OnOK ` once the
83
83
` Napi::AsyncWorker::Execute ` method completes.
84
84
85
85
``` cpp
@@ -115,7 +115,7 @@ virtual void Napi::AsyncWorker::OnOK();
115
115
116
116
### OnError
117
117
118
- This method is invoked afer ` Napi::AsyncWorker::Execute ` completes if an error
118
+ This method is invoked after ` Napi::AsyncWorker::Execute ` completes if an error
119
119
occurs while ` Napi::AsyncWorker::Execute ` is running and C++ exceptions are
120
120
enabled or if an error was set through a call to ` Napi::AsyncWorker::SetError ` .
121
121
The default implementation calls the callback provided when the ` Napi::AsyncWorker `
@@ -208,7 +208,7 @@ calling `Napi::AsyncWork::Queue`.
208
208
Creates a new ` Napi::AsyncWorker ` .
209
209
210
210
``` cpp
211
- explicit Napi::AsyncWorker (const Napi::Object& receiver, const Napi::Function& callback,const char* resource_name);
211
+ explicit Napi::AsyncWorker (const Napi::Object& receiver, const Napi::Function& callback, const char* resource_name);
212
212
```
213
213
214
214
- `[in] receiver`: The `this` object passed to the called function.
@@ -361,7 +361,7 @@ the work on the `Napi::AsyncWorker::Execute` method is done the
361
361
` Napi::AsyncWorker::OnOk ` method is called and the results return back to
362
362
JavaScript invoking the stored callback with its associated environment.
363
363
364
- The following code shows an example on how to create and and use an ` Napi::AsyncWorker `
364
+ The following code shows an example on how to create and use an ` Napi::AsyncWorker `
365
365
366
366
``` cpp
367
367
#include < napi.h>
0 commit comments