Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

remove obsolete trap from `waitable-set.wait` (#11795)

Joel Dice429529c6b9c2
diff --git a/crates/wasmtime/src/runtime/component/concurrent.rs b/crates/wasmtime/src/runtime/component/concurrent.rs
index 9c6d52b684..65eea83f3a 100644
--- a/crates/wasmtime/src/runtime/component/concurrent.rs
+++ b/crates/wasmtime/src/runtime/component/concurrent.rs
@@ -2855,10 +2855,6 @@ impl Instance {
let state = self.concurrent_state_mut(store);
let task = state.get_mut(guest_task)?;
- if wait && task.callback.is_some() {
- bail!("cannot call `task.wait` from async-lifted export with callback");
- }
-
// If we're waiting, and there are no events immediately available,
// suspend the fiber until that changes.
if wait {
diff --git a/tests/component-model b/tests/component-model
index 3870cbe964..8021b5101b 160000
--- a/tests/component-model
+++ b/tests/component-model
@@ -1 +1 @@
-Subproject commit 3870cbe964d8bc84777c182a883a9da00f6ea2cb
+Subproject commit 8021b5101bfefd00048230f92a206486341e8b0d