gpui: Cancel foreground tasks when the app is dropped (#45768)

This is in preparation for removing `Result<T>` from the `AsyncApp`
methods

Refactor machine goes brrrrrr

Plan and tracker for this PR:
https://gist.github.com/mikayla-maki/7dfc0d4907e76de119b5712e24665f02

This PR should be safe to merge, as I cannot observe any changes in
behavior from adding this to our application.

Release Notes:

- N/A
e8fbd5beafMikayla Maki committed on 1/5/2026, 7:00:54 AM· committed by GitHubparent88a153c
7 files changedLine totals unavailable