Rename method

This commit is contained in:
Thorsten Ball
2024-11-10 10:10:43 +01:00
parent 60998a2922
commit 588a189fa9
3 changed files with 4 additions and 2 deletions

View File

@@ -7320,6 +7320,8 @@ async fn test_lsp_shutdown(cx: &mut gpui::TestAppContext) {
cx,
)
.await;
drop(cx);
}
#[gpui::test]

View File

@@ -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");

View File

@@ -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>,