Struct may_queue::tokio_queue::Local
source · pub struct Local<T: 'static> { /* private fields */ }Expand description
Producer handle. May only be used from a single thread.
Implementations§
source§impl<T> Local<T>
impl<T> Local<T>
sourcepub fn is_stealable(&self) -> bool
pub fn is_stealable(&self) -> bool
Returns true if the queue has entries that can be stolen.
sourcepub fn has_tasks(&self) -> bool
pub fn has_tasks(&self) -> bool
Returns false if there are any entries in the queue
Separate to is_stealable so that refactors of is_stealable to “protect” some tasks from stealing won’t affect this