ReadonlypointerThe callback function pointer, passable to native functions.
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.
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.
Execute a snapshot of queued calls on the owning Node thread; return the number claimed.
Wrapper returned by threadSafeCallback.