You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implemented on next. napi_call_threadsafe_function comes from Hermes' first-party Node-API (API/napi/hermes_napi_tsfn.cpp, adopted in #372), and #398 supplies the post_task hook that carries the queued calls to the JS thread via the runtime's CallInvoker (packages/host/cpp/HermesNapiHost.cpp).
Verified by packages/node-addon-examples/tests/threadsafe-function, a port of Node's test_threadsafe_function — it exercises both blocking and non-blocking calls, queue-size limits, and the re-post path when Hermes' per-tick dispatch budget is exhausted.