Home
last modified time | relevance | path

Searched refs:try_select (Results 1 – 18 of 18) sorted by relevance

/external/rust/crates/crossbeam-channel/src/
Dselect.rs98 fn try_select(&self, token: &mut Token) -> bool; in try_select() method
123 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
124 (**self).try_select(token) in try_select()
202 if handle.try_select(&mut token) { in run_select()
215 cx.try_select(Selected::Aborted).unwrap(); in run_select()
225 sel = match cx.try_select(Selected::Aborted) { in run_select()
271 if i == index_ready && handle.try_select(&mut token) { in run_select()
303 if handle.try_select(&mut token) { in run_select()
383 sel = match cx.try_select(Selected::Operation(oper)) { in run_ready()
446 pub fn try_select<'a>( in try_select() function
[all …]
Dwaker.rs78 pub fn try_select(&mut self) -> Option<Entry> { in try_select() method
89 let res = self.selectors[i].cx.try_select(sel); in try_select()
143 if entry.cx.try_select(Selected::Operation(entry.oper)).is_ok() { in notify()
153 if entry.cx.try_select(Selected::Disconnected).is_ok() { in disconnect()
225 inner.try_select(); in notify()
Dchannel.rs1336 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
1338 SenderFlavor::Array(chan) => chan.sender().try_select(token), in try_select()
1339 SenderFlavor::List(chan) => chan.sender().try_select(token), in try_select()
1340 SenderFlavor::Zero(chan) => chan.sender().try_select(token), in try_select()
1398 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
1400 ReceiverFlavor::Array(chan) => chan.receiver().try_select(token), in try_select()
1401 ReceiverFlavor::List(chan) => chan.receiver().try_select(token), in try_select()
1402 ReceiverFlavor::Zero(chan) => chan.receiver().try_select(token), in try_select()
1403 ReceiverFlavor::At(chan) => chan.try_select(token), in try_select()
1404 ReceiverFlavor::Tick(chan) => chan.try_select(token), in try_select()
[all …]
Dcontext.rs92 pub fn try_select(&self, select: Selected) -> Result<(), Selected> { in try_select() method
169 return match self.try_select(Selected::Aborted) { in wait_until()
Dlib.rs354 pub use crate::select::{select, select_timeout, try_select};
Dselect_macro.rs825 let _oper = $crate::internal::try_select(&mut $sel);
/external/rust/crates/crossbeam-channel/src/flavors/
Dzero.rs119 if let Some(operation) = inner.receivers.try_select() { in start_send()
148 if let Some(operation) = inner.senders.try_select() { in start_recv()
191 if let Some(operation) = inner.receivers.try_select() { in try_send()
211 if let Some(operation) = inner.receivers.try_select() { in send()
264 if let Some(operation) = inner.senders.try_select() { in try_recv()
281 if let Some(operation) = inner.senders.try_select() { in recv()
369 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
419 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
Dnever.rs76 fn try_select(&self, _token: &mut Token) -> bool { in try_select() method
95 self.try_select(token) in accept()
Darray.rs376 let _ = cx.try_select(Selected::Aborted); in send()
436 let _ = cx.try_select(Selected::Aborted); in recv()
572 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
590 self.try_select(token) in accept()
608 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
626 self.try_select(token) in accept()
Dtick.rs123 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
152 self.try_select(token) in accept()
Dat.rs153 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
187 self.try_select(token) in accept()
Dlist.rs469 let _ = cx.try_select(Selected::Aborted); in recv()
606 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
624 self.try_select(token) in accept()
642 fn try_select(&self, token: &mut Token) -> bool { in try_select() method
657 self.try_select(token) in accept()
/external/rust/crates/futures-util/src/future/
Dmod.rs100 mod try_select; module
101 pub use self::try_select::{try_select, TrySelect};
Dtry_select.rs50 pub fn try_select<A, B>(future1: A, future2: B) -> TrySelect<A, B> in try_select() function
/external/rust/crates/futures/tests/
Deventual.rs83 run(future::try_select(p1, p2).map_ok(move |v| tx.send(v).unwrap())); in select1()
102 run(future::try_select(p1, p2).map_err(move |v| tx.send((1, v.into_inner().1)).unwrap())); in select2()
121 run(future::try_select(p1, p2).map_err(move |v| tx.send((1, v.into_inner().1)).unwrap())); in select3()
151 run(future::try_select(p1, p2).map_ok(move |_| tx3.send(()).unwrap())); in select4()
Dfutures_ordered.rs81 Box::new(future::try_select(b_rx, c_rx) in queue_never_unblocked()
Dshared.rs68 let f = future::try_select(f1.map_err(|_| ()), rx2.map_err(|_| ())); in drop_on_one_task_ok()
/external/rust/crates/crossbeam-channel/tests/
Dselect.rs142 let oper = sel.try_select(); in default()
153 let oper = sel.try_select(); in default()
167 let oper = sel.try_select(); in default()
178 let oper = sel.try_select(); in default()
185 let oper = sel.try_select(); in default()
245 let oper = sel.try_select(); in timeout()
266 let oper = sel.try_select(); in default_when_disconnected()
292 let oper = sel.try_select(); in default_when_disconnected()
320 let oper = sel.try_select(); in default_only()
424 let oper = sel.try_select(); in loop_try()
[all …]