Skip to content

Commit

Permalink
Changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
jauhien committed Oct 31, 2024
1 parent 087f3c8 commit 0732a7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion asynchronix-util/src/observables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ where

/// Observable state.
///
/// This struct incapsulates state. Every state change is propagated to the
/// This object encapsulates state. Every state change is propagated to the
/// output.
#[derive(Debug)]
pub struct ObservableState<S, T>
Expand Down Expand Up @@ -67,6 +67,11 @@ where
self.out.send(self.state.observe()).await;
r
}

/// Propagate value.
pub async fn propagate(&mut self) {
self.out.send(self.state.observe()).await;
}
}

impl<S, T> Deref for ObservableState<S, T>
Expand Down

0 comments on commit 0732a7e

Please sign in to comment.