Type Alias ProgressableHashMap

Source
pub type ProgressableHashMap<K, V> = HashMap<K, V, SubStore<(K, V)>, Guarded<(K, V)>>;
Expand description

Reactive hash map based on HashMap with additional functionality of tracking progress made by its subscribers.

Its HashMap::on_insert() and HashMap::on_remove() subscriptions return values wrapped in progressable::Guarded, and implementation tracks all progressable::Guards.

Aliased Type§

pub struct ProgressableHashMap<K, V> { /* private fields */ }

Implementations§

Source§

impl<K, V> ProgressableHashMap<K, V>
where K: Hash + Eq + Clone + 'static, V: Clone + 'static,

Source

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

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

Source

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

Returns Future resolving when all remove updates will be processed by HashMap::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.