Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-event/src/debounce.rs')
-rw-r--r--helix-event/src/debounce.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-event/src/debounce.rs b/helix-event/src/debounce.rs
index 5971f72b..30b6f671 100644
--- a/helix-event/src/debounce.rs
+++ b/helix-event/src/debounce.rs
@@ -28,10 +28,7 @@ pub trait AsyncHook: Sync + Send + 'static + Sized {
// so it should only be reached in case of total CPU overload.
// However, a bounded channel is much more efficient so it's nice to use here
let (tx, rx) = mpsc::channel(128);
- // only spawn worker if we are inside runtime to avoid having to spawn a runtime for unrelated unit tests
- if tokio::runtime::Handle::try_current().is_ok() {
- tokio::spawn(run(self, rx));
- }
+ tokio::spawn(run(self, rx));
tx
}
}