summaryrefslogtreecommitdiff
path: root/core/examples/http_bench_json_ops.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-10-11 13:20:40 +0200
committerGitHub <noreply@github.com>2020-10-11 13:20:40 +0200
commit527628e186e0fcaf946cc0668c36453eac8ad8ae (patch)
tree73398451ec23455552884af2a260bd6f50fa1090 /core/examples/http_bench_json_ops.rs
parent7af5041a0677b9f201a98d383a852c4515744fdc (diff)
reland JsRuntime/Worker is not a Future (#7924)
Diffstat (limited to 'core/examples/http_bench_json_ops.rs')
-rw-r--r--core/examples/http_bench_json_ops.rs2
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();
}