| ... | ... | @@ -1040,11 +1040,14 @@ pub const Group = struct { |
| 1040 | 1040 | |
| 1041 | 1041 | /// Blocks until all tasks of the group finish. |
| 1042 | 1042 | /// |
| 1043 | | /// Idempotent. Not threadsafe. |
| 1043 | /// On success, further calls to `wait`, `waitUncancelable`, and `cancel` |
| 1044 | /// do nothing. |
| 1045 | /// |
| 1046 | /// Not threadsafe. |
| 1044 | 1047 | pub fn wait(g: *Group, io: Io) Cancelable!void { |
| 1045 | 1048 | const token = g.token orelse return; |
| 1049 | try io.vtable.groupWait(io.userdata, g, token); |
| 1046 | 1050 | g.token = null; |
| 1047 | | return io.vtable.groupWait(io.userdata, g, token); |
| 1048 | 1051 | } |
| 1049 | 1052 | |
| 1050 | 1053 | /// Equivalent to `wait` except uninterruptible. |