From 61be0009ba58664fcf6a6e36e1e063968b21337b Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 9 Aug 2024 00:40:46 +0200 Subject: [PATCH] fix: removed InternallyMutable::wait its broken in weird ways, just dont use it that way --- src/buffer/tools.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/buffer/tools.rs b/src/buffer/tools.rs index 17249f0..0e40359 100644 --- a/src/buffer/tools.rs +++ b/src/buffer/tools.rs @@ -74,12 +74,6 @@ impl InternallyMutable { 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 InternallyMutable {