Skip to content

Instantly share code, notes, and snippets.

@andrewrk
andrewrk / example.zig
Last active May 12, 2026 16:01
async await demo
const std = @import("std");
const assert = std.debug.assert;
const Allocator = std.mem.Allocator;
const Io = std.Io;
pub fn main() !void {
var debug_allocator: std.heap.DebugAllocator(.{}) = .init;
const gpa = debug_allocator.allocator();
//const gpa = std.heap.smp_allocator;