From 3858a526e32cc661f7b0fdd0f40edb184d7c9209 Mon Sep 17 00:00:00 2001 From: Vexu <15308111+Vexu@users.noreply.github.com> Date: Thu, 7 Nov 2019 17:02:21 +0200 Subject: [PATCH] make callMainAsync async --- lib/std/special/start.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/special/start.zig b/lib/std/special/start.zig index 5c4d77b69..c56d50d7c 100644 --- a/lib/std/special/start.zig +++ b/lib/std/special/start.zig @@ -214,7 +214,7 @@ inline fn initEventLoopAndCallMain() u8 { return @inlineCall(callMain); } -fn callMainAsync(loop: *std.event.Loop) u8 { +async fn callMainAsync(loop: *std.event.Loop) u8 { // This prevents the event loop from terminating at least until main() has returned. loop.beginOneEvent(); defer loop.finishOneEvent();