mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 04:38:54 +00:00
Resolves #4044 - Added `use napi::{bindgen_prelude::AsyncTask, Task}` to handle async tasks without tokio. - Introduced `ResolveTask` struct implementing `Task` for asynchronous parsing. - Replaced `parse_sync` function implementation with `parse_with_return` to reuse code. - Refactored `parse_async` to use `AsyncTask` and `ResolveTask` for async parsing. - Removed tokio dependency by avoiding `tokio::spawn` and using `AsyncTask` for async operations. This refactor enhances code readability and removes the dependency on tokio, streamlining the async task handling within the napi framework. |
||
|---|---|---|
| .. | ||
| src | ||
| build.rs | ||
| Cargo.toml | ||
| index.d.ts | ||
| index.js | ||
| package.json | ||
| parse.bench.mjs | ||
| pnpm-lock.yaml | ||
| test.mjs | ||
| test_module_lexer.mjs | ||