Fix use_future always spawning a new task

This commit is contained in:
Evan Almloff 2023-07-21 11:52:41 -07:00
parent af254102d0
commit bfc8240438

View file

@ -52,6 +52,9 @@ where
val.set(Some(fut.await));
task.take();
})));
// Mark that we don't need to regenerate
state.needs_regen.set(false);
}
state