pub struct BatchCompletion { /* private fields */ }Expand description
A one-shot completion signal that can be observed from any thread
(the role of the Task exposed by a batch upstream).
Implementations§
Source§impl BatchCompletion
impl BatchCompletion
Sourcepub fn is_completed(&self) -> bool
pub fn is_completed(&self) -> bool
Whether the signal has been raised.
Sourcepub fn on_completed(&self, continuation: impl FnOnce() + Send + 'static)
pub fn on_completed(&self, continuation: impl FnOnce() + Send + 'static)
Runs continuation when the signal is raised: synchronously on the
raising thread, or right now if it has been raised already
(ContinueWith(.., ExecuteSynchronously)).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BatchCompletion
impl RefUnwindSafe for BatchCompletion
impl Send for BatchCompletion
impl Sync for BatchCompletion
impl Unpin for BatchCompletion
impl UnsafeUnpin for BatchCompletion
impl UnwindSafe for BatchCompletion
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<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more