Struct web_thread::web::ScopeIntoJoinFuture
source · pub struct ScopeIntoJoinFuture<'scope, 'env, F, T>(/* private fields */);
Available on
Web
only.Expand description
Poll to completion to get a ScopeJoinFuture
. See
ScopeFuture::into_wait()
.
§Notes
Keep in mind that if dropped it will block, or spinloop if blocking is not
supported on this thread (see has_block_support()
), until all threads
are joined but does not continue polling the Future
passed into
scope_async()
.
Implementations§
source§impl<'scope, 'env, F, T> ScopeIntoJoinFuture<'scope, 'env, F, T>
impl<'scope, 'env, F, T> ScopeIntoJoinFuture<'scope, 'env, F, T>
sourcepub fn revert(self) -> ScopeFuture<'scope, 'env, F, T> ⓘ
pub fn revert(self) -> ScopeFuture<'scope, 'env, F, T> ⓘ
Reverts back to ScopeFuture
. See ScopeFuture::into_wait()
.
Trait Implementations§
source§impl<F, T> Debug for ScopeIntoJoinFuture<'_, '_, F, T>
impl<F, T> Debug for ScopeIntoJoinFuture<'_, '_, F, T>
source§impl<'scope, 'env, F, T> Future for ScopeIntoJoinFuture<'scope, 'env, F, T>where
F: Future<Output = T>,
impl<'scope, 'env, F, T> Future for ScopeIntoJoinFuture<'scope, 'env, F, T>where
F: Future<Output = T>,
§type Output = ScopeJoinFuture<'scope, 'env, T>
type Output = ScopeJoinFuture<'scope, 'env, T>
The type of value produced on completion.
impl<'pin, 'scope, 'env, F, T> Unpin for ScopeIntoJoinFuture<'scope, 'env, F, T>where
__ScopeIntoJoinFuture<'pin, 'scope, 'env, F, T>: Unpin,
Auto Trait Implementations§
impl<'scope, 'env, F, T> Freeze for ScopeIntoJoinFuture<'scope, 'env, F, T>
impl<'scope, 'env, F, T> RefUnwindSafe for ScopeIntoJoinFuture<'scope, 'env, F, T>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<'scope, 'env, F, T> Send for ScopeIntoJoinFuture<'scope, 'env, F, T>
impl<'scope, 'env, F, T> Sync for ScopeIntoJoinFuture<'scope, 'env, F, T>
impl<'scope, 'env, F, T> !UnwindSafe for ScopeIntoJoinFuture<'scope, 'env, F, 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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more