| ... | ... | @@ -649,7 +649,7 @@ pub const Loop = struct { |
| 649 | 649 | |
| 650 | 650 | /// Runs the provided function asynchonously, similarly to Go's "go" operator. |
| 651 | 651 | /// `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 { |
| 653 | 653 | if (!std.io.is_async) @compileError("Can't use runDetached in non-async mode!"); |
| 654 | 654 | if (@TypeOf(@call(.{}, func, args)) != void) { |
| 655 | 655 | @compileError("`func` must not have a return value"); |