From aae85a4130ea032a17d6fadf7f3388b4c431a536 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 21 Nov 2025 09:08:37 -0800 Subject: [PATCH] std.Io.Threaded: allow calling init in single-threaded mode --- lib/std/Io/Threaded.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index 53d0335451..03fcc902d9 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -103,7 +103,7 @@ pub fn init( /// here. gpa: Allocator, ) Threaded { - assert(!builtin.single_threaded); // use 'init_single_threaded' instead + if (builtin.single_threaded) return .init_single_threaded; var t: Threaded = .{ .allocator = gpa,