mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-28 21:32:39 +00:00
Remove non-determinism from autosave after delay
This commit is contained in:
parent
a5c39acf4c
commit
f09d265054
1 changed files with 2 additions and 2 deletions
|
@ -5596,9 +5596,9 @@ impl Editor {
|
|||
.timer(Duration::from_millis(milliseconds))
|
||||
.fuse();
|
||||
pending_autosave.await;
|
||||
futures::select! {
|
||||
_ = timer => {}
|
||||
futures::select_biased! {
|
||||
_ = cancel_rx => return None,
|
||||
_ = timer => {}
|
||||
}
|
||||
|
||||
this.upgrade(&cx)?
|
||||
|
|
Loading…
Reference in a new issue