Fix error handling of open_path

Co-Authored-By: Nathan <nathan@zed.dev>
This commit is contained in:
Conrad Irwin 2023-11-02 14:34:43 -06:00
parent 6eeaa64e62
commit 9e5275cc18
4 changed files with 37 additions and 21 deletions

View file

@ -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();
}
}