MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / take

Method take

crates/wasmtime/src/runtime/component/concurrent.rs:4604–4612  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

4602
4603impl SyncResult {
4604 fn take(&mut self) -> Result<Option<Option<ValRaw>>> {
4605 Ok(match mem::replace(self, SyncResult::Taken) {
4606 SyncResult::NotProduced => None,
4607 SyncResult::Produced(val) => Some(val),
4608 SyncResult::Taken => {
4609 bail_bug!("attempted to take a synchronous result that was already taken")
4610 }
4611 })
4612 }
4613}
4614
4615#[derive(Debug)]

Callers 15

notify_droppedMethod · 0.45
dropMethod · 0.45
perform_actionMethod · 0.45
buildMethod · 0.45
transactMethod · 0.45
acceptMethod · 0.45
check_errorMethod · 0.45
report_errorMethod · 0.45
workMethod · 0.45
cancelMethod · 0.45
readMethod · 0.45
cancelMethod · 0.45

Calls 2

OkFunction · 0.85
replaceFunction · 0.50

Tested by 6

parent_processFunction · 0.36
do_wasi_http_echoFunction · 0.36
dropMethod · 0.36
send_requestMethod · 0.36
poll_frameMethod · 0.36