# gpui: Remove unsound await_on_background helper \(\#56132\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c8f002686780fdfcdb9301bf234d0c4bf4563800

Requested commit: c8f002686780fdfcdb9301bf234d0c4bf4563800

Commit: c8f002686780fdfcdb9301bf234d0c4bf4563800

Tree: 3a868e367c534d77fde03e113ec462ef9fc111de

Author: Lukas Wirth

Committer: GitHub

## Message

```
gpui: Remove unsound await_on_background helper (#56132)

The function is unsound due to the classic fact that one can leak tasks,
sidestepping the blocking drop behavior resulting in a use after free.

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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