Skip to content

Commit cd19dec

Browse files
author
sogaiu
committed
Tweak ev/select docstring
1 parent cabbade commit cd19dec

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/core/ev.c

+10-5
Original file line numberDiff line numberDiff line change
@@ -985,11 +985,16 @@ JANET_CORE_FN(cfun_channel_pop,
985985

986986
JANET_CORE_FN(cfun_channel_choice,
987987
"(ev/select & clauses)",
988-
"Block until the first of several channel operations occur. Returns a tuple of the form [:give chan], [:take chan x], or [:close chan], where "
989-
"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 "
990-
"a channel take operation) or a tuple [channel x] for a channel give operation. Operations are tried in order, such that the first "
991-
"clauses will take precedence over later clauses. Both and give and take operations can return a [:close chan] tuple, which indicates that "
992-
"the specified channel was closed while waiting, or that the channel was already closed.") {
988+
"Block until the first of several channel operations occur. Returns a "
989+
"tuple of the form [:give chan], [:take chan x], or [:close chan], "
990+
"where a :give tuple is the result of a write and a :take tuple is the "
991+
"result of a read. Each clause must be either a channel (for a channel "
992+
"take operation) or a tuple [channel x] (for a channel give operation). "
993+
"Operations are tried in order such that earlier clauses take "
994+
"precedence over later clauses. Both give and take operations can "
995+
"return a [:close chan] tuple, which indicates that the specified "
996+
"channel was closed while waiting, or that the channel was already "
997+
"closed.") {
993998
janet_arity(argc, 1, -1);
994999
int32_t len;
9951000
const Janet *data;

0 commit comments

Comments
 (0)