mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
cdp: replace tick by run_for_ns
This commit is contained in:
@@ -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| {
|
||||||
|
|||||||
Reference in New Issue
Block a user