Return Result
from AsyncAppContext::update_view
This commit is contained in:
parent
493a418c91
commit
31e6bb4fc1
4 changed files with 62 additions and 56 deletions
|
@ -210,9 +210,9 @@ impl ContextMenu {
|
|||
cx.notify();
|
||||
cx.spawn(|this, mut cx| async move {
|
||||
cx.background().timer(Duration::from_millis(50)).await;
|
||||
this.update(&mut cx, |this, cx| this.cancel(&Default::default(), cx));
|
||||
this.update(&mut cx, |this, cx| this.cancel(&Default::default(), cx))
|
||||
})
|
||||
.detach();
|
||||
.detach_and_log_err(cx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue