property
ffi.FFIFunction.threadsafe
readonly threadsafe?: boolean
Whether C/FFI code can call this function from a separate thread.
Only supported with JSCallback.
This does not make the function run in a separate thread; the application or library is still responsible for its own threading.
Enabling it adds a small cost to every call, so it's only worth it when that cost is smaller than what you gain from running the function on a separate thread.