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

Method poll

src/background.rs:123–129  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

121 }
122
123 pub fn poll(&self) -> Option<T> {
124 match self.result.try_recv() {
125 Ok(value) => Some(value.unwrap()),
126 Err(TryRecvError::Empty) => None,
127 Err(e) => panic!("{:?}", e),
128 }
129 }
130
131 pub fn wait_timeout(&self, wait: Duration) -> Option<T> {
132 match self.result.recv_timeout(wait) {

Callers 2

it_cancelsFunction · 0.80
it_pausesFunction · 0.80

Calls

no outgoing calls

Tested by 2

it_cancelsFunction · 0.64
it_pausesFunction · 0.64