diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-10-07 22:30:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 22:30:06 +0200 |
commit | d8879feb8c832dbb38649551b1cb0730874f7be6 (patch) | |
tree | ece7adc6d3611c87f6c2f13732b29ac4314a80ef /core/examples/http_bench_json_ops.rs | |
parent | 8bd7c936f9a9a63334e5f512d6b6c1f8b47a42b8 (diff) |
refactor(core): JsRuntime is not a Future (#7855)
This commit rewrites deno_core::JsRuntime to not implement Future
trait.
Instead there are two separate methods:
- JsRuntime::poll_event_loop() - does single tick of event loop
- JsRuntime::run_event_loop() - runs event loop to completion
Diffstat (limited to 'core/examples/http_bench_json_ops.rs')
-rw-r--r-- | core/examples/http_bench_json_ops.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/examples/http_bench_json_ops.rs b/core/examples/http_bench_json_ops.rs index 106b96f36..2cf3d09e3 100644 --- a/core/examples/http_bench_json_ops.rs +++ b/core/examples/http_bench_json_ops.rs @@ -193,7 +193,7 @@ fn main() { include_str!("http_bench_json_ops.js"), ) .unwrap(); - js_runtime.await + js_runtime.run_event_loop().await }; runtime.block_on(future).unwrap(); } |