pub struct AsyncWaitAny<V: Send + 'static> { /* private fields */ }
Expand description
等待任意异步任务执行完成
Implementations§
Source§impl<V: Send + 'static> AsyncWaitAny<V>
impl<V: Send + 'static> AsyncWaitAny<V>
Source§impl<V: Send + 'static> AsyncWaitAny<V>
impl<V: Send + 'static> AsyncWaitAny<V>
Sourcepub async fn wait_result(self) -> Result<V>
pub async fn wait_result(self) -> Result<V>
异步等待任意已派发任务的结果
Trait Implementations§
impl<V: Send + 'static> Send for AsyncWaitAny<V>
impl<V: Send + 'static> Sync for AsyncWaitAny<V>
Auto Trait Implementations§
impl<V> Freeze for AsyncWaitAny<V>
impl<V> RefUnwindSafe for AsyncWaitAny<V>
impl<V> Unpin for AsyncWaitAny<V>
impl<V> UnwindSafe for AsyncWaitAny<V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more