mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-23 05:14:54 +01:00
fix: removed InternallyMutable::wait
its broken in weird ways, just dont use it that way
This commit is contained in:
parent
a8b4eab445
commit
61be0009ba
1 changed files with 0 additions and 6 deletions
|
@ -74,12 +74,6 @@ impl<T> InternallyMutable<T> {
|
|||
pub fn set(&self, state: T) -> T {
|
||||
self.setter.send_replace(state)
|
||||
}
|
||||
|
||||
pub async fn wait(&self) {
|
||||
let mut new = self.getter.clone();
|
||||
new.changed().await; // first time unlocks immediately
|
||||
new.changed().await;
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: Clone> InternallyMutable<T> {
|
||||
|
|
Loading…
Reference in a new issue