replace async-io timer with background executor timer

This commit is contained in:
temportalflux
2026-07-11 09:31:07 -04:00
parent e0458531dd
commit cf6f785661
4 changed files with 2 additions and 5 deletions
@@ -134,7 +134,7 @@ impl Caret {
let interval = self.interval;
cx.spawn(async move |this, cx| {
async_io::Timer::after(interval).await;
cx.background_executor().timer(interval).await;
this.update(cx, |this, cx| {
if this.generation == generation {
this.paused = false;
@@ -158,7 +158,7 @@ impl Caret {
let interval = self.interval;
cx.spawn(async move |this, cx| {
async_io::Timer::after(interval).await;
cx.background_executor().timer(interval).await;
if let Some(this) = this.upgrade() {
this.update(cx, |this, cx| {
if this.generation == generation {