fn status(g: Group) *std.atomic.Value(Status)
Returns a correctly-typed pointer to the Io.Group.token field.
Io.Group.token
The status indicates how many pending tasks are in the group, whether the group has been canceled, and whether the group has been awaited.
Note that the zero value of Status intentionally represents the initial group state (empty with no awaiters). This is a requirement of Io.Group.
Status
Io.Group
g: Group
466 467 468
fn status(g: Group) *std.atomic.Value(Status) { return @ptrCast(&g.ptr.token); }
Returns a correctly-typed pointer to the
Io.Group.tokenfield.The status indicates how many pending tasks are in the group, whether the group has been canceled, and whether the group has been awaited.
Note that the zero value of
Statusintentionally represents the initial group state (empty with no awaiters). This is a requirement ofIo.Group.