diff options
Diffstat (limited to 'core/examples')
-rw-r--r-- | core/examples/http_bench_json_ops/http_bench_json_ops.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/examples/http_bench_json_ops/http_bench_json_ops.js b/core/examples/http_bench_json_ops/http_bench_json_ops.js index 5a205188b..0c3b5be13 100644 --- a/core/examples/http_bench_json_ops/http_bench_json_ops.js +++ b/core/examples/http_bench_json_ops/http_bench_json_ops.js @@ -3,7 +3,7 @@ // then write this fixed 'responseBuf'. The point of this benchmark is to // exercise the event loop in a simple yet semi-realistic way. -const { ops, opAsync } = Deno.core; +const { ops, opAsync, opAsync2 } = Deno.core; const requestBuf = new Uint8Array(64 * 1024); const responseBuf = new Uint8Array( @@ -23,7 +23,7 @@ function accept(serverRid) { } function read(serverRid, buf) { - return opAsync("op_read_socket", serverRid, buf); + return opAsync2("op_read_socket", serverRid, buf); } async function serve(rid) { |