mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.Io: rename EventLoop to IoUring
`std.Io.Evented` is introduced to select an appropriate Io implementation depending on OS
This commit is contained in:
parent
81b1bfbfbb
commit
1e81c3a925
2 changed files with 4 additions and 1 deletions
|
|
@ -557,7 +557,10 @@ test {
|
|||
|
||||
const Io = @This();
|
||||
|
||||
pub const EventLoop = @import("Io/EventLoop.zig");
|
||||
pub const Evented = switch (builtin.os.tag) {
|
||||
.linux => @import("Io/IoUring.zig"),
|
||||
else => void,
|
||||
};
|
||||
pub const Threaded = @import("Io/Threaded.zig");
|
||||
pub const net = @import("Io/net.zig");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue