Skip to main content

Module join

Module join 

Source

Re-exportsΒ§

use crate::cell::UnsafeCell; πŸ”’
use crate::future::Future; πŸ”’
use crate::future::poll_fn; πŸ”’
use crate::future::poll_fn; πŸ”’
use crate::mem; πŸ”’
use crate::pin::Pin; πŸ”’
use crate::task::Context; πŸ”’
use crate::task::Poll; πŸ”’
use crate::task::ready; πŸ”’

MacrosΒ§

joinExperimental
Polls multiple futures simultaneously, returning a tuple of all results once complete.
join_internal πŸ”’ Experimental
To be able to name the i-th future in the tuple (say we want the .4-th), the following trick will be used: let (_, _, _, _, it, ..) = tuple; In order to do that, we need to generate a i-long repetition of _, for each i-th fut. Hence the recursive muncher approach.

EnumsΒ§

MaybeDoneExperimental
Future used by join! that stores it’s output to be later taken and doesn’t panic when polled after ready.