zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit bf0afaa876391571f6072650bf450356b26c928d (tree)
parent beda6f2299d918cb5ed3444f18e985dc7de448b0
Author: Alexandros Naskos <alex_naskos@hotmail.com>
Date:   Thu,  1 Oct 2020 16:50:05 +0300

std.event.Loop.runDetached should be pub
Diffstat:
Mlib/std/event/loop.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig @@ -649,7 +649,7 @@ pub const Loop = struct { /// Runs the provided function asynchonously, similarly to Go's "go" operator. /// `func` must return void and it can be an async function. - fn runDetached(self: *Loop, alloc: *mem.Allocator, comptime func: anytype, args: anytype) error{OutOfMemory}!void { + pub fn runDetached(self: *Loop, alloc: *mem.Allocator, comptime func: anytype, args: anytype) error{OutOfMemory}!void { if (!std.io.is_async) @compileError("Can't use runDetached in non-async mode!"); if (@TypeOf(@call(.{}, func, args)) != void) { @compileError("`func` must not have a return value");