fix: add ThreadPool for key events on macOS

This commit is contained in:
Rylee Lyman 2024-06-13 10:04:04 -04:00 committed by Tim Culverhouse
parent 254cc0aac0
commit f57ba4b477

View file

@ -60,7 +60,10 @@ pub fn main() !void {
var vx = try vaxis.init(alloc, .{});
defer vx.deinit(alloc, tty.anyWriter());
var loop = try xev.Loop.init(.{});
var pool = xev.ThreadPool.init(.{});
var loop = try xev.Loop.init(.{
.thread_pool = &pool,
});
defer loop.deinit();
var app: App = .{