With napi-thread-safe-callback, you can callback from sub-thread safely: void example_async_work(const CallbackInfo& info) { // Capture callback in main ...
確定! 回上一頁