Skip to content

Commit 5473b63

Browse files
committed
Split blocking
1 parent 95d79c0 commit 5473b63

File tree

2 files changed

+2
-2
lines changed
  • turbopack/crates

2 files changed

+2
-2
lines changed

turbopack/crates/turbo-tasks-backend/src/backend/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
18871887
}
18881888

18891889
let this = self.clone();
1890-
let snapshot = turbo_tasks::spawn_blocking(move || this.snapshot()).await;
1890+
let snapshot = turbo_tasks::spawn_blocking_rayon(move || this.snapshot()).await;
18911891
if let Some((snapshot_start, new_data)) = snapshot {
18921892
last_snapshot = snapshot_start;
18931893
if new_data {

turbopack/crates/turbo-tasks-fs/src/retry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ where
2929
{
3030
let path = path.as_ref().to_owned();
3131

32-
turbo_tasks::spawn_blocking(move || {
32+
turbo_tasks::spawn_blocking_tokio(move || {
3333
let mut attempt = 1;
3434

3535
loop {

0 commit comments

Comments
 (0)