mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
improvements for async-io
This commit is contained in:
@@ -7,10 +7,11 @@
|
||||
// This interface uses a VTable pattern - a struct of function pointers -
|
||||
// to abstract over different concurrency backends:
|
||||
//
|
||||
// * Threaded - classic thread-pool based I/O
|
||||
// * Uring - Linux io_uring
|
||||
// * Kqueue - BSD/macOS
|
||||
// * Dispatch - macOS Grand Central Dispatch
|
||||
// * Threaded - thread-pool based I/O
|
||||
// * Evented - chooses the best event-loop backend for your OS:
|
||||
// * Uring on Linux (io_uring)
|
||||
// * Kqueue on BSD/macOS
|
||||
// * Dispatch on macOS (Grand Central Dispatch)
|
||||
//
|
||||
// The Io struct itself is tiny:
|
||||
//
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- exercises/085_async.zig 2026-04-01 20:40:08.904999609 +0200
|
||||
+++ answers/085_async.zig 2026-04-01 20:40:05.641933231 +0200
|
||||
@@ -37,7 +37,7 @@
|
||||
--- exercises/085_async.zig 2026-04-04 16:01:01.509555724 +0200
|
||||
+++ answers/085_async.zig 2026-04-04 16:00:58.541495688 +0200
|
||||
@@ -38,7 +38,7 @@
|
||||
const std = @import("std");
|
||||
|
||||
pub fn main(init: std.process.Init) !void {
|
||||
|
||||
Reference in New Issue
Block a user