# \`cx.background_executor\(\)\.spawn\(\.\.\.\)\` \-\> \`cx.background_spawn\(\.\.\.\)\` \(\#25103\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b1872e3afd33878e08ca08af422250f97de25f8e

Requested commit: b1872e3afd33878e08ca08af422250f97de25f8e

Commit: b1872e3afd33878e08ca08af422250f97de25f8e

Tree: a4c7f479592856f56a505e88df5fae70550c6cd5

Author: Michael Sloan

Committer: GitHub

## Message

```
`cx.background_executor().spawn(...)` -> `cx.background_spawn(...)` (#25103)

Done automatically with

> ast-grep -p '$A.background_executor().spawn($B)' -r
'$A.background_spawn($B)' --update-all --globs "\!crates/gpui"

Followed by:

* `cargo fmt`
* Unexpected need to remove some trailing whitespace.
* Manually adding imports of `gpui::{AppContext as _}` which provides
`background_spawn`
* Added `AppContext as _` to existing use of `AppContext`

Release Notes:

- N/A
```

## Parents

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

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