File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ functions that were created in JavaScript and passed to the native add-on.
11
11
The ` Napi::Function ` class inherits its behavior from the ` Napi::Object ` class (for more info
12
12
see: [ ` Napi::Object ` ] ( object.md ) ).
13
13
14
+ > For callbacks that will be called with asynchronous events from a
15
+ > non-JavaScript thread, please refer to [ ` Napi::ThreadSafeFunction ` ] [ ] for more
16
+ > examples.
17
+
14
18
## Example
15
19
16
20
``` cpp
@@ -393,3 +397,5 @@ Napi::Value Napi::Function::operator ()(const std::initializer_list<napi_value>&
393
397
- ` [in] args ` : Initializer list of JavaScript values as ` napi_value ` .
394
398
395
399
Returns a ` Napi::Value ` representing the JavaScript value returned by the function.
400
+
401
+ [ `Napi::ThreadSafeFunction` ] : ./threadsafe_function.md
You can’t perform that action at this time.
0 commit comments