per-context scheduler

This commit is contained in:
Karl Seguin
2026-02-02 12:40:54 +08:00
parent 20931eb9d6
commit 5dd6dc2d69
9 changed files with 41 additions and 28 deletions

View File

@@ -112,6 +112,10 @@ pub fn runMicrotasks(self: *const Browser) void {
self.env.runMicrotasks();
}
pub fn runMacrotasks(self: *Browser) !?u64 {
return try self.env.runMacrotasks();
}
pub fn runMessageLoop(self: *const Browser) void {
while (self.env.pumpMessageLoop()) {
if (comptime IS_DEBUG) {