Skip to content

[Tracking]: migrate all blocking call to async call #8312

@hardfist

Description

@hardfist

What subject does this issue tracking?

migrate all blocking call to async call

we already migrate the whole architecture to async thread pool in #8226
so blocking call will block the whole thread and will hurt performance, so we should migrate all blocking call to async call for performance reason, which includes

### Tasks
- [x] migrate all block_on to async call
- [x] migrate all blocking_call in tsfn to call_async
- [x] migrate rspack_resolver to use async fs(this may need benchmark)
- [x] migrate all rust side sync hook to async hook

Metadata

Metadata

Assignees

No one assigned

    Labels

    teamThe issue/pr is created by the member of Rspack.tracking issueCategory: A tracking issue for an RFC or an unstable feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions