summaryrefslogtreecommitdiff
path: root/core/examples/http_bench.js
diff options
context:
space:
mode:
authorAndy Finch <andyfinch7@gmail.com>2020-01-17 08:26:11 -0500
committerRy Dahl <ry@tinyclouds.org>2020-01-17 08:26:11 -0500
commitfe5662058e0c7767e7b2724451f9d5a3f133ffbf (patch)
treebe43744898f64af6605246ba95ede55a869f7ab4 /core/examples/http_bench.js
parentd8ad81d3fb5b4b9502ea021edfc99201538553e6 (diff)
feat: support individual async handler for each op (#3690)
Diffstat (limited to 'core/examples/http_bench.js')
-rw-r--r--core/examples/http_bench.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/examples/http_bench.js b/core/examples/http_bench.js
index db57401cc..dc204dfca 100644
--- a/core/examples/http_bench.js
+++ b/core/examples/http_bench.js
@@ -123,8 +123,10 @@ async function serve(rid) {
let ops;
async function main() {
- Deno.core.setAsyncHandler(handleAsyncMsgFromRust);
ops = Deno.core.ops();
+ for (const opName in ops) {
+ Deno.core.setAsyncHandler(ops[opName], handleAsyncMsgFromRust);
+ }
Deno.core.print("http_bench.js start\n");