cdp: replace tick by run_for_ns

This commit is contained in:
Pierre Tachoire
2024-11-15 15:05:35 +01:00
parent 7fed1f3015
commit 18ab0c8199

View File

@@ -482,7 +482,7 @@ pub fn listen(
// - cmd from incoming connection on server socket // - cmd from incoming connection on server socket
// - JS callbacks events from scripts // - JS callbacks events from scripts
while (true) { while (true) {
try loop.io.tick(); try loop.io.run_for_ns(10 * std.time.ns_per_ms);
if (loop.cbk_error) { if (loop.cbk_error) {
log.err("JS error", .{}); log.err("JS error", .{});
// if (try try_catch.exception(alloc, js_env.*)) |msg| { // if (try try_catch.exception(alloc, js_env.*)) |msg| {