var startup: coro.ResetEvent = .{};
_ = try scheduler.spawn(server, .{&startup}, .{});
I'm struggling to understand the inner workings on the zig-aio/ coro library. Lets take this piece of code:
const RT = @TypeOf(@call(.auto, func, args));
var task = try self.spawnAny(RT, func, args, opts);
return task.generic(RT);
}
It seems the func is called (const RT = @TypeOf(@call(.auto, func, args));) , but later on its scheduled? Is this meant to only get the return type (@TypeOf evals the expression without side effects). Any clues?