# Add epoch interruption to WASM engine for cooperative yielding \(\#32806\) · gitcafe/zed

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

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

Visibility: public

Requested revision: acb0210d26f0041769109429340776f27018de17

Requested commit: acb0210d26f0041769109429340776f27018de17

Commit: acb0210d26f0041769109429340776f27018de17

Tree: a178b0dfe00b00f9849733654575820150a1c065

Author: Ben Brandt

Committer: GitHub

## Message

```
Add epoch interruption to WASM engine for cooperative yielding (#32806)

Prevent extensions from blocking async threads by enabling epoch
interruption with 100ms intervals. Extensions will yield control back to
the executor regularly during Future::poll operations.

Addresses the
[discussion](https://github.com/zed-industries/zed/discussions/24515)
that goes into depth on why this is important when enabling async
support with Wasmtime.

Release Notes:

- N/A
```

## Parents

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

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