aboutsummaryrefslogtreecommitdiff
path: root/lib/std/event
diff options
context:
space:
mode:
authorAlexandros Naskos <alex_naskos@hotmail.com>2020-10-01 16:50:05 +0300
committerGitHub <noreply@github.com>2020-10-01 16:50:05 +0300
commitbf0afaa876391571f6072650bf450356b26c928d (patch)
tree0a2a413babbca26dfea776f05efad25104887799 /lib/std/event
parentbeda6f2299d918cb5ed3444f18e985dc7de448b0 (diff)
downloadzig-bf0afaa876391571f6072650bf450356b26c928d.tar.gz
zig-bf0afaa876391571f6072650bf450356b26c928d.zip
std.event.Loop.runDetached should be pub
Diffstat (limited to 'lib/std/event')
-rw-r--r--lib/std/event/loop.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig
index cb0aa63dbe..cf220bf775 100644
--- 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");