summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs28
1 files changed, 8 insertions, 20 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 22e534e1d..2f0016581 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -211,12 +211,9 @@ impl CliMainWorker {
self
.worker
.js_runtime
- .with_event_loop(
+ .with_event_loop_future(
coverage_collector.stop_collecting().boxed_local(),
- PollEventLoopOptions {
- wait_for_inspector: false,
- ..Default::default()
- },
+ PollEventLoopOptions::default(),
)
.await?;
}
@@ -224,12 +221,9 @@ impl CliMainWorker {
self
.worker
.js_runtime
- .with_event_loop(
+ .with_event_loop_future(
hmr_runner.stop().boxed_local(),
- PollEventLoopOptions {
- wait_for_inspector: false,
- ..Default::default()
- },
+ PollEventLoopOptions::default(),
)
.await?;
}
@@ -340,12 +334,9 @@ impl CliMainWorker {
self
.worker
.js_runtime
- .with_event_loop(
+ .with_event_loop_future(
coverage_collector.start_collecting().boxed_local(),
- PollEventLoopOptions {
- wait_for_inspector: false,
- ..Default::default()
- },
+ PollEventLoopOptions::default(),
)
.await?;
Ok(Some(coverage_collector))
@@ -371,12 +362,9 @@ impl CliMainWorker {
self
.worker
.js_runtime
- .with_event_loop(
+ .with_event_loop_future(
hmr_runner.start().boxed_local(),
- PollEventLoopOptions {
- wait_for_inspector: false,
- ..Default::default()
- },
+ PollEventLoopOptions::default(),
)
.await?;