authorgravatar for bblack@wikimedia.orgBrandon Black <bblack@wikimedia.org> 2026-01-14 18:14:43-06:00
committergravatar for bblack@wikimedia.orgBrandon Black <bblack@wikimedia.org> 2026-01-14 18:23:45-06:00
log46fcf22630849f68f92aec64d38f44b0c4b3a943
treef58a4e98fa2090048f796468151dd9e28c6221d2
parent4df6119335513af5b8d7dc0f6421b42cf13c3654

Io.Select: docs nits


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/Io.zig+3-3
...@@ -1250,7 +1250,7 @@ pub fn Select(comptime U: type) type {...@@ -1250,7 +1250,7 @@ pub fn Select(comptime U: type) type {
1250 /// already been called and completed, or it has successfully been1250 /// already been called and completed, or it has successfully been
1251 /// assigned a unit of concurrency.1251 /// assigned a unit of concurrency.
1252 ///1252 ///
1253 /// After this is called, `wait` or `cancel` must be called before the1253 /// After this is called, `await` or `cancel` must be called before the
1254 /// select is deinitialized.1254 /// select is deinitialized.
1255 ///1255 ///
1256 /// Threadsafe.1256 /// Threadsafe.
...@@ -1293,12 +1293,12 @@ pub fn Select(comptime U: type) type {...@@ -1293,12 +1293,12 @@ pub fn Select(comptime U: type) type {
1293 };1293 };
1294 }1294 }
12951295
1296 /// Equivalent to `wait` but requests cancelation on all remaining1296 /// Equivalent to `await` but requests cancelation on all remaining
1297 /// tasks owned by the select.1297 /// tasks owned by the select.
1298 ///1298 ///
1299 /// For a description of cancelation and cancelation points, see `Future.cancel`.1299 /// For a description of cancelation and cancelation points, see `Future.cancel`.
1300 ///1300 ///
1301 /// It is illegal to call `wait` after this.1301 /// It is illegal to call `await` after this.
1302 ///1302 ///
1303 /// Idempotent. Not threadsafe.1303 /// Idempotent. Not threadsafe.
1304 pub fn cancel(s: *S) void {1304 pub fn cancel(s: *S) void {