GeezerVison is showing github.com — n-api: add API for asynchronous functions · synapse/node@81f06ba
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 |
|---|
@@ -1376,6 +1376,31 @@ multiple of the element size. |
1376 | 1376 | While calling `napi_create_typedarray()`, `(length * size_of_element) + |
1377 | 1377 | byte_offset` was larger than the length of given `buffer`. |
1378 | 1378 |
|
| 1379 | +<a id="ERR_NAPI_TSFN_CALL_JS"></a> |
| 1380 | +### ERR_NAPI_TSFN_CALL_JS |
| 1381 | + |
| 1382 | +An error occurred while invoking the JavaScript portion of the thread-safe |
| 1383 | +function. |
| 1384 | + |
| 1385 | +<a id="ERR_NAPI_TSFN_GET_UNDEFINED"></a> |
| 1386 | +### ERR_NAPI_TSFN_GET_UNDEFINED |
| 1387 | + |
| 1388 | +An error occurred while attempting to retrieve the JavaScript `undefined` |
| 1389 | +value. |
| 1390 | + |
| 1391 | +<a id="ERR_NAPI_TSFN_START_IDLE_LOOP"></a> |
| 1392 | +### ERR_NAPI_TSFN_START_IDLE_LOOP |
| 1393 | + |
| 1394 | +On the main thread, values are removed from the queue associated with the |
| 1395 | +thread-safe function in an idle loop. This error indicates that an error |
| 1396 | +has occurred when attemping to start the loop. |
| 1397 | + |
| 1398 | +<a id="ERR_NAPI_TSFN_STOP_IDLE_LOOP"></a> |
| 1399 | +### ERR_NAPI_TSFN_STOP_IDLE_LOOP |
| 1400 | + |
| 1401 | +Once no more items are left in the queue, the idle loop must be suspended. This |
| 1402 | +error indicates that the idle loop has failed to stop. |
| 1403 | + |
1379 | 1404 | <a id="ERR_NO_CRYPTO"></a> |
1380 | 1405 | ### ERR_NO_CRYPTO |
1381 | 1406 |
|
|
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.