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
Generated
-1
View File
@@ -2425,7 +2425,6 @@ dependencies = [
name = "gpui_elements"
version = "0.1.0"
dependencies = [
"async-io",
"gpui",
"smallvec",
"unicode-segmentation",
-1
View File
@@ -31,7 +31,6 @@ accesskit_macos = "0.26.0"
accesskit_unix = "0.22.0"
accesskit_windows = "0.32.1"
anyhow = "1.0.86"
async-io = "2.6"
backtrace = "0.3"
bitflags = "2.6.0"
collections = { git = "https://github.com/zed-industries/zed", rev = "876ec5a8a074ba83cce2129ed4d76b59c05a37e9", version = "0.1.0" }
-1
View File
@@ -13,7 +13,6 @@ ignored = ["gpui"]
[dependencies]
gpui.workspace = true
async-io.workspace = true
unicode-segmentation.workspace = true
smallvec.workspace = true
@@ -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 {