# Add a crate for spawning tokio tasks in Zed \(\#23857\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bd213340133f23add7d5b1d4bc250d1880b6ff95

Requested commit: bd213340133f23add7d5b1d4bc250d1880b6ff95

Commit: bd213340133f23add7d5b1d4bc250d1880b6ff95

Tree: dc4d09840111336c1de7d7e5a06bc6158305e085

Author: Mikayla Maki

Committer: GitHub

## Message

```
Add a crate for spawning tokio tasks in Zed (#23857)

Part of https://github.com/zed-industries/zed/pull/21092

As we're already depending on and using `tokio` to run `reqwest`, I've
added a crate to make running tokio futures more convenient. This should
unblock the Bedrock Cloud Model provider PR.

Note that since the `gpui_tokio` code is nearly trivial glue and I
expect that it will be useful for the nascent GPUI ecosystem, I've
elected to license it under Apache 2, like GPUI itself, instead of our
normal GPL license for Zed code.

Release Notes:

- N/A
```

## Parents

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

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