Only check for ctrl+c every 10 ms

This commit is contained in:
2026-01-02 20:50:55 +00:00
parent 90b5b1548f
commit 29e5b92ee0

View File

@@ -67,7 +67,7 @@ pub fn main(alloc: std.mem.Allocator, server_config: ServerInfo) !void {
defer server_task.cancel(io) catch {};
while (keep_running.load(.monotonic)) {
try io.sleep(.fromMilliseconds(1), .awake);
try io.sleep(.fromMilliseconds(10), .awake);
}
std.debug.print("\n", .{});