replace async-io timer with background executor timer
This commit is contained in:
Generated
-1
@@ -2425,7 +2425,6 @@ dependencies = [
|
||||
name = "gpui_elements"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"async-io",
|
||||
"gpui",
|
||||
"smallvec",
|
||||
"unicode-segmentation",
|
||||
|
||||
@@ -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" }
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user