Type Definition medea_reactive::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.

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.