Change RpcClient methods to take shared references
This will make it easier to spawn a future on gpui's executors when calling `RpcClient` methods. Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
co-authored by
Max Brunsfeld
parent
e551894189
commit
a87d4db155
+2
-2
@@ -1207,7 +1207,7 @@ pub trait WorktreeHandle {
|
||||
fn flush_fs_events<'a>(
|
||||
&self,
|
||||
cx: &'a gpui::TestAppContext,
|
||||
) -> futures_core::future::LocalBoxFuture<'a, ()>;
|
||||
) -> futures::future::LocalBoxFuture<'a, ()>;
|
||||
}
|
||||
|
||||
impl WorktreeHandle for ModelHandle<Worktree> {
|
||||
@@ -1268,7 +1268,7 @@ impl WorktreeHandle for ModelHandle<Worktree> {
|
||||
fn flush_fs_events<'a>(
|
||||
&self,
|
||||
cx: &'a gpui::TestAppContext,
|
||||
) -> futures_core::future::LocalBoxFuture<'a, ()> {
|
||||
) -> futures::future::LocalBoxFuture<'a, ()> {
|
||||
use smol::future::FutureExt;
|
||||
|
||||
let filename = "fs-event-sentinel";
|
||||
|
||||
Reference in New Issue
Block a user