async_ui_internal_utils 0.0.2

for internal use only
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::ReactiveCell;

impl<T> ReactiveCell<T> {
    pub async fn for_each<F: FnMut(&T)>(&self, mut func: F) {
        loop {
            {
                func(&self.borrow());
            }
            self.until_change().await;
        }
    }
}