Skip to content

Document some known async pitfalls - #11871

Merged
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:doc-some-pitfalls
Oct 16, 2025
Merged

alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:doc-some-pitfalls

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

* `call_concurrent` is more like a "spawn" operation within a store so
  it cannot be cancelled by dropping the returned future.
* `call_concurrent` cannot be cancelled today other than by dropping the
  whole store. This is the subject of bytecodealliance#11833.
* `call_concurrent` cannot make progress outside of `run_concurrent`.
* `run_concurrent` does not properly implement "select" operations
  internally due to bytecodealliance#11869 and bytecodealliance#11870. This means that timeouts within
  `run_concurrent` will not work.
@alexcrichton
alexcrichton requested a review from dicej October 15, 2025 21:55
@alexcrichton
alexcrichton requested a review from a team as a code owner October 15, 2025 21:55
@github-actions github-actions Bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Oct 16, 2025
@alexcrichton
alexcrichton added this pull request to the merge queue Oct 16, 2025
Merged via the queue into bytecodealliance:main with commit d6e7841 Oct 16, 2025
@alexcrichton
alexcrichton deleted the doc-some-pitfalls branch October 16, 2025 15:15
bongjunj pushed a commit to prosyslab/wasmtime that referenced this pull request Oct 20, 2025
* Document some known async pitfalls

* `call_concurrent` is more like a "spawn" operation within a store so
  it cannot be cancelled by dropping the returned future.
* `call_concurrent` cannot be cancelled today other than by dropping the
  whole store. This is the subject of bytecodealliance#11833.
* `call_concurrent` cannot make progress outside of `run_concurrent`.
* `run_concurrent` does not properly implement "select" operations
  internally due to bytecodealliance#11869 and bytecodealliance#11870. This means that timeouts within
  `run_concurrent` will not work.

* Review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants