pub struct LimitedJoinSet<T> { /* private fields */ }Implementations§
Source§impl<T: 'static> LimitedJoinSet<T>
impl<T: 'static> LimitedJoinSet<T>
pub fn new(max_concurrent: usize) -> Self
pub fn spawn<F>(&mut self, task: F) -> AbortHandle
pub fn try_join_next(&mut self) -> Option<Result<T, JoinError>>
pub async fn join_next(&mut self) -> Option<Result<T, JoinError>>
pub async fn join_all(self) -> Vec<T>
pub fn poll_join_next( &mut self, cx: &mut Context<'_>, ) -> Poll<Option<Result<T, JoinError>>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<T> Freeze for LimitedJoinSet<T>
impl<T> RefUnwindSafe for LimitedJoinSet<T>
impl<T> Send for LimitedJoinSet<T>where
T: Send,
impl<T> Sync for LimitedJoinSet<T>where
T: Send,
impl<T> Unpin for LimitedJoinSet<T>
impl<T> UnsafeUnpin for LimitedJoinSet<T>
impl<T> UnwindSafe for LimitedJoinSet<T>
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