Fix error handling of open_path
Co-Authored-By: Nathan <nathan@zed.dev>
This commit is contained in:
parent
6eeaa64e62
commit
9e5275cc18
4 changed files with 37 additions and 21 deletions
|
@ -49,11 +49,11 @@ impl<T> Task<T> {
|
|||
|
||||
impl<E, T> Task<Result<T, E>>
|
||||
where
|
||||
T: 'static + Send,
|
||||
E: 'static + Send + Debug,
|
||||
T: 'static,
|
||||
E: 'static + Debug,
|
||||
{
|
||||
pub fn detach_and_log_err(self, cx: &mut AppContext) {
|
||||
cx.background_executor().spawn(self.log_err()).detach();
|
||||
cx.foreground_executor().spawn(self.log_err()).detach();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue