commit aae85a4130ea032a17d6fadf7f3388b4c431a536 (tree) parent b4ec78906cdb2a13b08f94690fb270726bbdb819 Author: Andrew Kelley <andrew@ziglang.org> Date: Fri, 21 Nov 2025 09:08:37 -0800 std.Io.Threaded: allow calling init in single-threaded mode Diffstat:
| M | 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 @@ -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,