Rename method
This commit is contained in:
@@ -7320,6 +7320,8 @@ async fn test_lsp_shutdown(cx: &mut gpui::TestAppContext) {
|
||||
cx,
|
||||
)
|
||||
.await;
|
||||
|
||||
drop(cx);
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
|
||||
@@ -369,7 +369,7 @@ impl AppContext {
|
||||
|
||||
let futures = futures::future::join_all(futures);
|
||||
if background_executor
|
||||
.block_with_timeout_background_and_foreground(SHUTDOWN_TIMEOUT, futures)
|
||||
.block_to_shutdown(SHUTDOWN_TIMEOUT, futures)
|
||||
.is_err()
|
||||
{
|
||||
log::error!("timed out waiting on app_will_quit");
|
||||
|
||||
@@ -301,7 +301,7 @@ impl BackgroundExecutor {
|
||||
|
||||
/// Block the current thread until the given future resolves
|
||||
/// or `duration` has elapsed.
|
||||
pub fn block_with_timeout_background_and_foreground<R>(
|
||||
pub fn block_to_shutdown<R>(
|
||||
&self,
|
||||
duration: Duration,
|
||||
future: impl Future<Output = R>,
|
||||
|
||||
Reference in New Issue
Block a user