@@ -1012,11 +1012,16 @@ static void chan_unlock_args(const Janet *argv, int32_t n) {
1012
1012
1013
1013
JANET_CORE_FN (cfun_channel_choice ,
1014
1014
"(ev/select & clauses)" ,
1015
- "Block until the first of several channel operations occur. Returns a tuple of the form [:give chan], [:take chan x], or [:close chan], where "
1016
- "a :give tuple is the result of a write and :take tuple is the result of a read. Each clause must be either a channel (for "
1017
- "a channel take operation) or a tuple [channel x] for a channel give operation. Operations are tried in order, such that the first "
1018
- "clauses will take precedence over later clauses. Both and give and take operations can return a [:close chan] tuple, which indicates that "
1019
- "the specified channel was closed while waiting, or that the channel was already closed." ) {
1015
+ "Block until the first of several channel operations occur. Returns a "
1016
+ "tuple of the form [:give chan], [:take chan x], or [:close chan], "
1017
+ "where a :give tuple is the result of a write and a :take tuple is the "
1018
+ "result of a read. Each clause must be either a channel (for a channel "
1019
+ "take operation) or a tuple [channel x] (for a channel give operation). "
1020
+ "Operations are tried in order such that earlier clauses take "
1021
+ "precedence over later clauses. Both give and take operations can "
1022
+ "return a [:close chan] tuple, which indicates that the specified "
1023
+ "channel was closed while waiting, or that the channel was already "
1024
+ "closed." ) {
1020
1025
janet_arity (argc , 1 , -1 );
1021
1026
int32_t len ;
1022
1027
const Janet * data ;
0 commit comments