Lines Matching refs:TaskHandle
156 pub enum TaskHandle<R> { enum
167 impl<R: Send + 'static> TaskHandle<R> { implementation
171 TaskHandle::Fd(f) => f.detach(), in detach()
173 TaskHandle::Uring(u) => u.detach(), in detach()
175 TaskHandle::Handle(h) => h.detach(), in detach()
177 TaskHandle::Tokio(t) => t.detach(), in detach()
186 TaskHandle::Fd(f) => f.cancel().await, in cancel()
188 TaskHandle::Uring(u) => u.cancel().await, in cancel()
190 TaskHandle::Handle(h) => h.cancel().await, in cancel()
192 TaskHandle::Tokio(t) => t.cancel().await, in cancel()
197 impl<R: 'static> Future for TaskHandle<R> { implementation
203 TaskHandle::Fd(f) => Pin::new(f).poll(cx), in poll()
205 TaskHandle::Uring(u) => Pin::new(u).poll(cx), in poll()
207 TaskHandle::Handle(h) => Pin::new(h).poll(cx), in poll()
209 TaskHandle::Tokio(t) => Pin::new(t).poll(cx), in poll()
217 fn spawn<F>(&self, f: F) -> TaskHandle<F::Output> in spawn()
222 fn spawn_blocking<F, R>(&self, f: F) -> TaskHandle<R> in spawn_blocking()
227 fn spawn_local<F>(&self, f: F) -> TaskHandle<F::Output> in spawn_local()
462 pub fn spawn<F>(&self, f: F) -> TaskHandle<F::Output> in spawn()
508 pub fn spawn_local<F>(&self, f: F) -> TaskHandle<F::Output> in spawn_local()
556 pub fn spawn_blocking<F, R>(&self, f: F) -> TaskHandle<R> in spawn_blocking()