mirror of
https://git.robbyzambito.me/zits
synced 2026-02-04 03:34:48 +00:00
Only check for ctrl+c every 10 ms
This commit is contained in:
@@ -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", .{});
|
||||
|
||||
Reference in New Issue
Block a user