pub fn await(g: *Group, io: Io) Cancelable!void CanceledCaller has requested the async operation to stop.
1402
1403
1404
1405
1406 pub fn await(g: *Group, io: Io) Cancelable!void {
const token = g.token.load(.acquire) orelse return;
try io.vtable.groupAwait(io.userdata, g, token);
assert(g.token.raw == null);
}
Blocks until all tasks of the group finish. During this time, cancelation requests propagate to all members of the group, and will also cause
error.Canceledto be returned when the group does ultimately finish.After this function returns, all tasks of the
Groupcreated withasyncorconcurrentare guaranteed to have run.Idempotent. Not threadsafe.
It is safe to call this function concurrently with
Group.asyncorGroup.concurrent, provided that the group does not complete until the call toGroup.asyncorGroup.concurrentreturns.