diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-12-13 08:07:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 08:07:26 -0700 |
commit | 76a6ea57753be420398d3eba8f313a6c98eab8c3 (patch) | |
tree | 66c95d582b711aa4f4234943f5526b98c8176210 /cli/worker.rs | |
parent | 461ef6bdd80347caa12934c2c16337bc8d40d9a4 (diff) |
refactor(cli): update to new deno_core promise/call methods (#21519)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 28 |
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?; |