There was an error while loading. Please reload this page.
1 parent 0156d68 commit b80e439Copy full SHA for b80e439
1 file changed
lib/std/Io/Threaded.zig
@@ -453,7 +453,7 @@ fn async(
453
start: *const fn (context: *const anyopaque, result: *anyopaque) void,
454
) ?*Io.AnyFuture {
455
const t: *Threaded = @ptrCast(@alignCast(userdata));
456
- if (t.cpu_count == 1) {
+ if (t.cpu_count == 1 or builtin.single_threaded) {
457
start(context.ptr, result.ptr);
458
return null;
459
}
0 commit comments