Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By whit3rabbitv1.0.0MITIn 1 marketplace
Write Zig 0.16+ async code with the new std.Io interface, covering io.async and io.concurrent, futures, and cancellation. Based on the author's README, it targets an API it says is planned for 0.16.0.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
zig, async-io, concurrency, io-uring, cancellation, futures, async, io_uring ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A comprehensive Claude skill for Zig's new async I/O design planned for version 0.16.0.
This skill provides expertise in Zig's redesigned async I/O system based on the std.Io interface. Unlike the old async/await (removed in 0.11), the new design decouples concurrency expression from execution models, allowing code to work optimally across synchronous, multi-threaded, and event-driven contexts.
Critical Distinction: Asynchrony ≠ Concurrency
io.async()): Operations can proceed out-of-orderio.concurrent()): Operations must proceed simultaneouslyasync-overview.md - Complete design philosophy and rationaleasync-vs-concurrent.md - Critical distinction explained with examplesbasic_async.zig - Simple async operations with io.async()concurrent_tasks.zig - Producer-consumer patterns with io.concurrent()cancellation.zig - Proper task cancellation and resource cleanupasync-function.zig - Multiple async function patterns and best practicesLoad the skill in Claude Code:
Copy zig-async-io directory to ~/.claude/skills/
Start using async patterns:
const std = @import("std");
fn processFiles(io: *std.Io, data: []const u8) !void {
// Spawn async operations
var fut_a = io.async(saveFile, .{io, data, "a.txt"});
var fut_b = io.async(saveFile, .{io, data, "b.txt"});
// Await results
try fut_a.await(io);
try fut_b.await(io);
}
The new async I/O follows these principles:
concurrent() makes parallelism requirements clearconst Io = struct {
// Spawn async work (may execute immediately or be scheduled)
fn async(self: *Io, func: anytype, args: anytype) Future
// Spawn concurrent work (requires parallelism)
fn concurrent(self: *Io, func: anytype, args: anytype) !Future
// Message passing primitive
fn Queue(comptime T: type) type
};
const Future = struct {
// Wait for result (idempotent)
fn await(self: *Future, io: *Io) !T
// Cancel and retrieve result (idempotent)
fn cancel(self: *Future, io: *Io) !T
};
std.Io.Threaded) - Multiplexes across OS threadsio.async() for:io.concurrent() for:var fut_a = io.async(saveFile, .{io, data, "a.txt"});
var fut_b = io.async(saveFile, .{io, data, "b.txt"});
try fut_a.await(io);
try fut_b.await(io);
var future = io.async(operation, .{io});
defer if (future.cancel(io)) |result| {
cleanup(result);
} else |_| {};
try future.await(io);
var queue = io.Queue(Task).init();
var prod = try io.concurrent(producer, .{io, &queue});
var cons = try io.concurrent(consumer, .{io, &queue});
try prod.await(io);
try cons.await(io);
Target Version: Zig 0.16.0 (unreleased) Status: Implementation in progress, API subject to change
Based on:
Old (pre-0.11):
var frame_a = async saveFile(data, "a.txt");
try await frame_a;
New (0.16.0+):
var fut_a = io.async(saveFile, .{io, data, "a.txt"});
try fut_a.await(io);
io.async() unless concurrent truly neededBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub whit3rabbit/claude-zig-skill --plugin zig-asyncPlugins from other owners that cover similar ground