MCPcopy Create free account
hub / github.com/Freaky/Compactor / wait_timeout

Method wait_timeout

src/background.rs:131–137  ·  view source on GitHub ↗
(&self, wait: Duration)

Source from the content-addressed store, hash-verified

129 }
130
131 pub fn wait_timeout(&self, wait: Duration) -> Option<T> {
132 match self.result.recv_timeout(wait) {
133 Ok(value) => Some(value.unwrap()),
134 Err(RecvTimeoutError::Timeout) => None,
135 Err(e) => panic!("{:?}", e),
136 }
137 }
138
139 pub fn wait(self) -> T {
140 match self.result.recv() {

Callers 2

it_walksFunction · 0.80
scan_loopMethod · 0.80

Calls

no outgoing calls

Tested by 1

it_walksFunction · 0.64