summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2021-06-29 20:39:28 +0200
committerGitHub <noreply@github.com>2021-06-29 14:39:28 -0400
commit5db9f627e3b105ffc1ed43bb81732886308ddfdf (patch)
tree4e094158c4e3ca23df188105821b6683de6dabe1 /runtime/worker.rs
parenta0c0daac24c496e49e7c0abaae12f34723785a7d (diff)
chore: get rid of REPL timeout (#11175)
* Get rid of timeout * Use tokio channel and reduce calls to run_event_loop Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 567e75253..091b97119 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -7,7 +7,6 @@ use crate::ops;
use crate::permissions::Permissions;
use deno_broadcast_channel::InMemoryBroadcastChannel;
use deno_core::error::AnyError;
-use deno_core::futures::future::poll_fn;
use deno_core::futures::stream::StreamExt;
use deno_core::futures::Future;
use deno_core::located_script_name;
@@ -247,7 +246,7 @@ impl MainWorker {
&mut self,
wait_for_inspector: bool,
) -> Result<(), AnyError> {
- poll_fn(|cx| self.poll_event_loop(cx, wait_for_inspector)).await
+ self.js_runtime.run_event_loop(wait_for_inspector).await
}
/// A utility function that runs provided future concurrently with the event loop.