Struct overclock::core::AbortableUnboundedHandle
source · pub struct AbortableUnboundedHandle<T> { /* private fields */ }
Expand description
Abortable unbounded handle
Implementations§
source§impl<T> AbortableUnboundedHandle<T>
impl<T> AbortableUnboundedHandle<T>
sourcepub fn new(sender: UnboundedHandle<T>) -> Self
pub fn new(sender: UnboundedHandle<T>) -> Self
Create new abortable unbounded handle
sourcepub fn send_after(
&self,
message: T,
duration: Duration
) -> JoinHandle<Result<(), SendError<T>>>where
T: Send + 'static,
pub fn send_after(
&self,
message: T,
duration: Duration
) -> JoinHandle<Result<(), SendError<T>>>where
T: Send + 'static,
Send message to the channel after the duration pass
sourcepub fn same_channel(&self, other: &Self) -> bool
pub fn same_channel(&self, other: &Self) -> bool
Returns true if senders belong to the same channel