zig
zig copied to clipboard
Add `!noreturn` return type for `std.Thread.spawn`
Allow startFn
to return !noreturn
. If both noreturn
and !void
are supported, why wouldn't !noreturn
be?
Right now the error is error: expected return type of startFn to be 'u8', 'noreturn', 'void', or '!void'