Skip to content

Commit

Permalink
📝 'sel' doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
circlespainter committed May 1, 2015
1 parent ce5cd7c commit 30bb434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ For example, in the following call,
(sel [ch1 [ch2 msg1] ch3 [ch4 msg2]])
~~~

a message will either be received from `ch1` or `ch2`, or one will be sent to either `ch2` or `ch4`. If, for instance, `ch2` will become available for reading (i.e. it has been sent a message) first, than only that operation, in this case a `rcv` will be performed on `ch1`. If `ch2` becomes available for writing before that happens, then only that operation, a `snd`, will be performed. If two operations are available at the same time, one will be chosen randomly (unless the `:priority` option is set, as we'll see later).
a message will either be received from `ch1` or `ch3`, or one will be sent to either `ch2` or `ch4`. If, for instance, `ch1` will become available for reading (i.e. it has been sent a message) first, than only a `rcv` will be performed on it. If `ch2` becomes available for writing before that happens, then only that operation, a `snd`, will be performed. If two operations are available at the same time, one will be chosen randomly (unless the `:priority` option is set, as we'll see later).

Note that if a channel's overflow policy is anything by `:block`, then `snd` operations are always available.

Expand Down

0 comments on commit 30bb434

Please sign in to comment.