While I asked this question in #zig, I think I need additional help to understand how and what I need to make it work.
I have a list of all map of all futures (all_futures: std.AutoHashMap(usize, std.Io.Future(void))), and a subset list of handles to wait for (handles: []usize).
How could I wait for the first future in the subset to finish:
fn waitAny(io: std.Io, all_futures: std.AutoHashMap(usize, std.Io.Future(void)), handles: []usize) void
I've been directed to std.Io.Select, but I am unsure how to use it, since my futures are already spawned by the time I need to select one.