# gpui_tokio: Fix \`child task panicked: JoinError::Cancelled\` panics \(\#51995\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 283bab5bf1d25b62da88ad8bf450bb74e92ade87

Requested commit: 283bab5bf1d25b62da88ad8bf450bb74e92ade87

Commit: 283bab5bf1d25b62da88ad8bf450bb74e92ade87

Tree: 024049311e2848e609732aab5a6f68678d9c5579

Author: Lukas Wirth

Committer: GitHub

## Message

```
gpui_tokio: Fix `child task panicked: JoinError::Cancelled` panics (#51995)

This panic stemmed from us dropping the tokio runtime before dropping
wasm tasks which then could attempt to spawn_blocking, immediately
failing and panicking on unwrap inside wasmtime.

Closes ZED-5DE

Release Notes:

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

## Parents

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

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