pub trait TaskRunner: 'static {
// Required method
fn run(&self, job: Box<dyn FnOnce() + Send>, cx: &App) -> Task<()>;
}Expand description
Runs the view’s background jobs (projection rebuilds and compactions).
The default, BackgroundRunner, uses GPUI’s background executor.
InlineRunner runs jobs on the calling thread, for platforms without
background threads (WebAssembly without SharedArrayBuffer).