Skip to content

Instantly share code, notes, and snippets.

@andrewrk
andrewrk / example.zig
Last active November 5, 2025 22:34
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;