ReadonlypointerThe callback function pointer, passable to native functions. Throws after release().
Readonly_Same as pointer: lets the callback be passed directly as an argument.
Readonly_Release the callback and free native resources. Must be called when done. Can be called from inside the callback (it does not throw): later invocations return zero.
Release the callback at the end of a using block.
Keep the Node.js event loop alive until released (the default).
Do not keep the Node.js event loop alive: the process can exit while the callback exists. Calls from other threads are delivered while it runs.
Transfer a nonzero opaque error pointer to nativeContext.onError on the original caller thread, after resume. Only during this callback; once per invocation. The callback must also return its ABI's error sentinel. Ownership transfers to onError, which must consume the pointer.
Return the last error recorded during callback execution or return conversion, or null.
Install (or clear with null) an error handler called on JS exceptions and return-conversion failures.
Execute a snapshot of queued calls on the owning Node thread; return the number claimed.
Wrapper returned by threadSafeCallback.