mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 12:48:38 +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. |
||
|---|---|---|
| .. | ||
| parser | ||
| transform | ||
| .gitignore | ||