From da8a611113e94fc9d5e9a44007f6da212d5a4625 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Mon, 9 Feb 2026 22:27:20 -0700 Subject: [PATCH] Expose the scheduler executor for ex (#48854) Release Notes: - N/A --- crates/gpui/src/executor.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/gpui/src/executor.rs b/crates/gpui/src/executor.rs index aaf56bb74f10cfbb2ba0e37a944e1593f3943b3f..33426c58442e4c8be58fb686a3f3c9489584f6cc 100644 --- a/crates/gpui/src/executor.rs +++ b/crates/gpui/src/executor.rs @@ -14,7 +14,7 @@ use std::{ }; use util::TryFutureExt; -pub use scheduler::{FallibleTask, Priority}; +pub use scheduler::{FallibleTask, ForegroundExecutor as SchedulerForegroundExecutor, Priority}; /// A pointer to the executor that is currently running, /// for spawning background tasks. @@ -477,6 +477,11 @@ impl ForegroundExecutor { pub fn dispatcher(&self) -> &Arc { &self.dispatcher } + + #[doc(hidden)] + pub fn scheduler_executor(&self) -> SchedulerForegroundExecutor { + self.inner.clone() + } } /// Scope manages a set of tasks that are enqueued and waited on together. See [`BackgroundExecutor::scoped`].