()
| 107 | struct NapiRuntime; |
| 108 | |
| 109 | fn fallback_runtime() -> &'static tokio::runtime::Runtime { |
| 110 | static RUNTIME: OnceLock<tokio::runtime::Runtime> = OnceLock::new(); |
| 111 | RUNTIME.get_or_init(|| { |
| 112 | tokio::runtime::Builder::new_multi_thread() |
| 113 | .enable_all() |
| 114 | .thread_name("a3s-code-node-worker") |
| 115 | .build() |
| 116 | .expect("failed to create Tokio runtime for Node bindings") |
| 117 | }) |
| 118 | } |
| 119 | |
| 120 | impl NapiRuntime { |
| 121 | fn spawn<F>(&self, fut: F) -> tokio::task::JoinHandle<F::Output> |
no test coverage detected