Type Definition medea_reactive::ProgressableVec
source · pub type ProgressableVec<T> = Vec<T, SubStore<T>, Guarded<T>>;
Expand description
Reactive vector based on Vec
with additional functionality of tracking
progress made by its subscribers. Its Vec::on_push()
and
Vec::on_remove()
subscriptions return values wrapped in a
progressable::Guarded
, and the implementation tracks all
progressable::Guard
s.
Implementations§
source§impl<T> ProgressableVec<T>where
T: Clone + 'static,
impl<T> ProgressableVec<T>where T: Clone + 'static,
sourcepub fn when_push_processed(&self) -> Processed<'static> ⓘ
pub fn when_push_processed(&self) -> Processed<'static> ⓘ
Returns Future
resolving when all push updates will be processed by
Vec::on_push()
subscribers.
sourcepub fn when_remove_processed(&self) -> Processed<'static> ⓘ
pub fn when_remove_processed(&self) -> Processed<'static> ⓘ
Returns Future
resolving when all remove updates will be processed
by Vec::on_remove()
subscribers.
sourcepub fn when_all_processed(&self) -> AllProcessed<'static> ⓘ
pub fn when_all_processed(&self) -> AllProcessed<'static> ⓘ
Returns Future
resolving when all push and remove updates will be
processed by subscribers.