Revert "Multiple priority scheduler" (#44637)
Reverts zed-industries/zed#44575
This commit is contained in:
@@ -12,7 +12,7 @@ mod session;
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
use async_dispatcher::{Dispatcher, Runnable, set_dispatcher};
|
||||
use gpui::{App, PlatformDispatcher, Priority, RunnableVariant};
|
||||
use gpui::{App, PlatformDispatcher, RunnableVariant};
|
||||
use project::Fs;
|
||||
pub use runtimelib::ExecutionState;
|
||||
|
||||
@@ -46,7 +46,7 @@ fn zed_dispatcher(cx: &mut App) -> impl Dispatcher {
|
||||
impl Dispatcher for ZedDispatcher {
|
||||
fn dispatch(&self, runnable: Runnable) {
|
||||
self.dispatcher
|
||||
.dispatch(RunnableVariant::Compat(runnable), None, Priority::default());
|
||||
.dispatch(RunnableVariant::Compat(runnable), None);
|
||||
}
|
||||
|
||||
fn dispatch_after(&self, duration: Duration, runnable: Runnable) {
|
||||
|
||||
Reference in New Issue
Block a user