Type Alias ProgressableHashSet

Source
pub type ProgressableHashSet<T> = HashSet<T, SubStore<T>, Guarded<T>>;
Expand description

Reactive hash set based on HashSet with an ability to recognize when all updates was processed by subscribers.

Aliased Type§

pub struct ProgressableHashSet<T> { /* private fields */ }

Implementations§

Source§

impl<T> ProgressableHashSet<T>
where T: Clone + 'static,

Source

pub fn when_insert_processed(&self) -> Processed<'static>

Returns Future resolving when all push updates will be processed by HashSet::on_insert() subscribers.

Source

pub fn when_remove_processed(&self) -> Processed<'static>

Returns Future resolving when all remove updates will be processed by HashSet::on_remove() subscribers.

Source

pub fn when_all_processed(&self) -> AllProcessed<'static>

Returns Future resolving when all insert and remove updates will be processed by subscribers.