pub struct CljxFuture {
pub state: Mutex<FutureState>,
pub cond: Condvar,
/* private fields */
}Expand description
A future value computed asynchronously on another thread.
Fields§
§state: Mutex<FutureState>§cond: CondvarImplementations§
Source§impl CljxFuture
impl CljxFuture
pub fn new() -> Self
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
True if explicitly cancelled.
Sourcepub fn mark_observed(&self)
pub fn mark_observed(&self)
Mark this future’s result as observed. Call when a consumer reads the
settled value (await/deref), so a later drop doesn’t warn about an
unobserved error.
Trait Implementations§
Source§impl Debug for CljxFuture
impl Debug for CljxFuture
Source§impl Default for CljxFuture
impl Default for CljxFuture
Source§impl Drop for CljxFuture
impl Drop for CljxFuture
Source§impl Trace for CljxFuture
impl Trace for CljxFuture
fn trace(&self, visitor: &mut MarkVisitor)
fn gc_size_extra(&self) -> usize
Auto Trait Implementations§
impl !Freeze for CljxFuture
impl !Send for CljxFuture
impl !Sync for CljxFuture
impl RefUnwindSafe for CljxFuture
impl Unpin for CljxFuture
impl UnsafeUnpin for CljxFuture
impl UnwindSafe for CljxFuture
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