diff --git a/veilid-tools/src/callback_state_machine.rs b/veilid-tools/src/callback_state_machine.rs index 80085d37..238ac43f 100644 --- a/veilid-tools/src/callback_state_machine.rs +++ b/veilid-tools/src/callback_state_machine.rs @@ -54,14 +54,14 @@ where self.inner.lock().callback = Some(callback); } - // pub fn clear_state_change_callback(&self) { - // self.inner.lock().callback = None; - // } + pub fn clear_state_change_callback(&self) { + self.inner.lock().callback = None; + } - // pub fn state_eventual_instance(&self) -> (T::State, EventualValueCloneFuture) { - // let inner = self.inner.lock(); - // (inner.state, inner.eventual.instance()) - // } + pub fn state_eventual_instance(&self) -> (T::State, EventualValueCloneFuture) { + let inner = self.inner.lock(); + (inner.state, inner.eventual.instance()) + } pub async fn consume(&self, input: &T::Input) -> Result, ()> { let current_state = self.inner.lock().state;