fix: add ThreadPool for key events on macOS
This commit is contained in:
parent
254cc0aac0
commit
f57ba4b477
1 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,10 @@ pub fn main() !void {
|
||||||
var vx = try vaxis.init(alloc, .{});
|
var vx = try vaxis.init(alloc, .{});
|
||||||
defer vx.deinit(alloc, tty.anyWriter());
|
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();
|
defer loop.deinit();
|
||||||
|
|
||||||
var app: App = .{
|
var app: App = .{
|
||||||
|
|
Loading…
Reference in a new issue