LongYinan 913e42f47c
fix(napi): ensure tokio runtime is initialized for dlopen (#2850)
* fix(napi): ensure tokio runtime is initialized for dlopen

Fixes async functions panic when using nodejs dlopen by ensuring
the tokio runtime is properly initialized before accessing it.

When modules are loaded via dlopen instead of require, the runtime
initialization might not happen through the normal module registration
path. This fix adds start_async_runtime() calls to all runtime access
functions to handle this scenario.

Fixes #2847

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix

* Fix

* Remove

* cargo check

* fix for wasm

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-08 20:12:14 +08:00
..
2025-07-24 21:41:32 +08:00
2025-08-07 23:39:50 +08:00
2025-07-21 10:39:48 +08:00