pub async fn project_shutdown(project: External<ProjectInstance>)
Expand description
Runs project_on_exit
, and then waits for turbo_tasks to gracefully shut down.
This is used in builds where it’s important that we completely persist turbo-tasks to disk, but
it’s skipped in the development server (project_on_exit
is used instead with a short timeout),
where we prioritize fast exit and user responsiveness over all else.