napi_get_threadsafe_function_context
NAPI_EXTERN napi_status
napi_get_threadsafe_function_context(napi_threadsafe_function func,
void** result); -
[in] func:为其检索上下文的线程安全函数。¥
[in] func: The thread-safe function for which to retrieve the context. -
[out] result:存储上下文的位置。¥
[out] result: The location where to store the context.
可以从使用 func 的任何线程调用此 API。
¥This API may be called from any thread which makes use of func.