# extension_host: Run extensions on the tokio threadpool \(\#40936\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 278032c6b815aea8ce749af5e1580ddd13043a5c

Requested commit: 278032c6b815aea8ce749af5e1580ddd13043a5c

Commit: 278032c6b815aea8ce749af5e1580ddd13043a5c

Tree: 7f93cc9c27dc1b0874996bf17c32d36e4ca00cba

Author: Lukas Wirth

Committer: GitHub

## Message

```
extension_host: Run extensions on the tokio threadpool (#40936)

Fixes ZED-12D

`wasmtime_wasi` might call into tokio futures (to sleep for example)
which requires access to the tokio runtime. So we are required to run
these extensions in the tokio thread pool

Release Notes:

- Fixed extensions causing zed to occasionally panic
```

## Parents

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

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