# gpui: Cancel foreground tasks when the app is dropped \(\#45768\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/e8fbd5beafc98e79bf487c7be33d921f2eab294c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: e8fbd5beafc98e79bf487c7be33d921f2eab294c

Requested commit: e8fbd5beafc98e79bf487c7be33d921f2eab294c

Commit: e8fbd5beafc98e79bf487c7be33d921f2eab294c

Tree: ce4b4779e99f0b96f34b657ac336d904a4d65a1f

Author: Mikayla Maki

Committer: GitHub

## Message

```
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
```

## Parents

- [88a153cd186b32551f9bc369836d563906d97b3a](https://git.cafe/gitcafe/zed/commit/88a153cd186b32551f9bc369836d563906d97b3a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/e8fbd5beafc98e79bf487c7be33d921f2eab294c?format=markdown)
