Skip to content

Commit

Permalink
Revert "workaround for missing active tracking"
Browse files Browse the repository at this point in the history
This reverts commit d41ced7.
  • Loading branch information
sokra committed Oct 4, 2024
1 parent a1f888d commit c77f094
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions crates/napi/src/next_api/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,6 @@ pub async fn project_new(
.await
.inspect_err(|err| tracing::warn!(%err, "failed to benchmark file IO"))
});
// TODO remove this: Workaround for missing active tracking
turbo_tasks.wait_primary_jobs_done().await;
Ok(External::new_with_size_hint(
ProjectInstance {
turbo_tasks,
Expand Down
9 changes: 0 additions & 9 deletions turbopack/crates/turbo-tasks/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1044,15 +1044,6 @@ impl<B: Backend + 'static> TurboTasks<B> {
}
}

pub async fn wait_primary_jobs_done(&self) {
let listener = self
.event
.listen_with_note(|| "wait_primary_jobs_done".to_string());
if self.currently_scheduled_tasks.load(Ordering::Acquire) != 0 {
listener.await;
}
}

pub async fn wait_background_done(&self) {
let listener = self.event_background.listen();
if self
Expand Down

0 comments on commit c77f094

Please sign in to comment.