fix: removed InternallyMutable::wait

its broken in weird ways, just dont use it that way
This commit is contained in:
əlemi 2024-08-09 00:40:46 +02:00
parent a8b4eab445
commit 61be0009ba
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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> {