authorgravatar for alex_naskos@hotmail.comAlexandros Naskos <alex_naskos@hotmail.com> 2020-10-01 16:50:05+03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-10-01 16:50:05+03:00
logbf0afaa876391571f6072650bf450356b26c928d
tree0a2a413babbca26dfea776f05efad25104887799
parentbeda6f2299d918cb5ed3444f18e985dc7de448b0
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

std.event.Loop.runDetached should be pub


1 files changed, 1 insertions(+), 1 deletions(-)

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