Fix use_future always spawning a new task
This commit is contained in:
1 parent
af254102d0
commit
bfc8240438
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user