Commit 3858a526e3

Vexu <15308111+Vexu@users.noreply.github.com>
2019-11-07 16:02:21
make callMainAsync async
1 parent 2e52faf
Changed files (1)
lib
std
special
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();