GeezerVison is showing github.com — n-api: add API for asynchronous functions · nodejs/node@91384bf
File tree
Expand file treeCollapse file tree
Open diff view settings
test/addons-napi/test_threadsafe_function
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/errors.md +25Lines changed: 25 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1386,6 +1386,31 @@ multiple of the element size. |
1386 | 1386 | While calling `napi_create_typedarray()`, `(length * size_of_element) + |
1387 | 1387 | byte_offset` was larger than the length of given `buffer`. |
1388 | 1388 |
|
| 1389 | +<a id="ERR_NAPI_TSFN_CALL_JS"></a> |
| 1390 | +### ERR_NAPI_TSFN_CALL_JS |
| 1391 | + |
| 1392 | +An error occurred while invoking the JavaScript portion of the thread-safe |
| 1393 | +function. |
| 1394 | + |
| 1395 | +<a id="ERR_NAPI_TSFN_GET_UNDEFINED"></a> |
| 1396 | +### ERR_NAPI_TSFN_GET_UNDEFINED |
| 1397 | + |
| 1398 | +An error occurred while attempting to retrieve the JavaScript `undefined` |
| 1399 | +value. |
| 1400 | + |
| 1401 | +<a id="ERR_NAPI_TSFN_START_IDLE_LOOP"></a> |
| 1402 | +### ERR_NAPI_TSFN_START_IDLE_LOOP |
| 1403 | + |
| 1404 | +On the main thread, values are removed from the queue associated with the |
| 1405 | +thread-safe function in an idle loop. This error indicates that an error |
| 1406 | +has occurred when attemping to start the loop. |
| 1407 | + |
| 1408 | +<a id="ERR_NAPI_TSFN_STOP_IDLE_LOOP"></a> |
| 1409 | +### ERR_NAPI_TSFN_STOP_IDLE_LOOP |
| 1410 | + |
| 1411 | +Once no more items are left in the queue, the idle loop must be suspended. This |
| 1412 | +error indicates that the idle loop has failed to stop. |
| 1413 | + |
1389 | 1414 | <a id="ERR_NO_CRYPTO"></a> |
1390 | 1415 | ### ERR_NO_CRYPTO |
1391 | 1416 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: doc/api/n-api.md +373-1Lines changed: 373 additions & 1 deletion - Display the source diff
- Display the rich diff
Large diffs are not rendered by default.