mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 02:37:21 +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))
|
.timer(Duration::from_millis(milliseconds))
|
||||||
.fuse();
|
.fuse();
|
||||||
pending_autosave.await;
|
pending_autosave.await;
|
||||||
futures::select! {
|
futures::select_biased! {
|
||||||
_ = timer => {}
|
|
||||||
_ = cancel_rx => return None,
|
_ = cancel_rx => return None,
|
||||||
|
_ = timer => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.upgrade(&cx)?
|
this.upgrade(&cx)?
|
||||||
|
|
Loading…
Reference in a new issue