Home
last modified time | relevance | path

Searched refs:Yield (Results 1 – 13 of 13) sorted by relevance

/wasmtime-44.0.1/crates/fiber/src/
H A Dlib.rs130 pub struct Fiber<'a, Resume, Yield, Return> {
134 _phantom: PhantomData<&'a (Resume, Yield, Return)>,
137 pub struct Suspend<Resume, Yield, Return> {
139 _phantom: PhantomData<(Resume, Yield, Return)>,
146 enum RunResult<Resume, Yield, Return> {
157 Yield(Yield), enumerator
168 impl<'a, Resume, Yield, Return> Fiber<'a, Resume, Yield, Return> {
209 RunResult::Yield(y) => { in resume()
239 impl<Resume, Yield, Return> Suspend<Resume, Yield, Return> {
249 pub fn suspend(&mut self, value: Yield) -> Resume { in suspend()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dasync_yield.rs9 pub struct Yield { struct
13 impl Yield { implementation
20 impl Future for Yield { implementation
H A Dlibcalls.rs1289 crate::runtime::vm::Yield::new().await; in out_of_gas()
1318 UpdateDeadline::Yield(delta) => { in new_epoch()
1325 crate::runtime::vm::Yield::new().await; in new_epoch()
/wasmtime-44.0.1/tests/all/
H A Depoch_interruption.rs37 Yield(u64), enumerator
60 InterruptMode::Yield(delta) => { in run_and_count_yields_or_trap()
98 InterruptMode::Yield(1), in epoch_yield_at_func_entry()
124 InterruptMode::Yield(5), in epoch_yield_at_loop_header()
146 InterruptMode::Yield(1), in epoch_yield_immediate()
178 InterruptMode::Yield(1), in epoch_yield_only_once()
382 Ok(UpdateDeadline::Yield(1)) in epoch_callback_yield()
H A Dmissing_async.rs284 store.epoch_deadline_callback(|_store| Ok(UpdateDeadline::Yield(1))); in epoch_yield_disallowed_without_async()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/store/
H A Dasync_.rs177 Some(Box::new(move |_store| Ok(UpdateDeadline::Yield(delta)))); in epoch_deadline_async_yield_and_update()
/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dstore.hh30 Yield = WASMTIME_UPDATE_DEADLINE_YIELD, enumerator
/wasmtime-44.0.1/tests/misc_testsuite/component-model-threading/
H A Dstackful-cancellation.wast71 ;; Yield back to the caller, who will attempt to cancel us, but we won't see it
74 … ;; Yield back to the caller again. This time, we should receive the cancellation immediately.
100 …;; Yield nondeterministically, either back to the supertask, who will then wait on cancellation to…
122 …;; Yield to the spawned thread uncancellably. We should eventually be rescheduled without being no…
125 … ;; Yield to the spawned thread again. This time we should see the cancellation immediately.
H A Dmany-threads-indexed.wast78 ;; Yield to all threads in ascending order of assigned number
H A Dthreading-builtins.wast33 ;; Yield back to the main thread (since that is the only other one)
/wasmtime-44.0.1/crates/c-api/src/
H A Dstore.rs179 None if kind == WASMTIME_UPDATE_DEADLINE_YIELD => Ok(UpdateDeadline::Yield(delta)), in wasmtime_store_epoch_deadline_callback()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/
H A Dgc_runtime.rs758 crate::runtime::vm::Yield::new().await in collect_async()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dstore.rs406 Yield(u64), enumerator
2110 vm::Yield::new().await; in trace_roots()
2116 vm::Yield::new().await; in trace_roots()
2121 vm::Yield::new().await; in trace_roots()