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::Guards.

Implementations§

source§

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

source

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

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

source

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

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

source

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

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