You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/walkthrough.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ Instead of the explicit thread and blocking call, we use a go block for the prod
97
97
98
98
One killer feature for channels over queues is the ability to wait on many channels at the same time (like a socket select). This is done with`alts!!` (ordinary threads) or`alts!` in go blocks.
99
99
100
-
We can create a background thread with alts that combines inputs on either of two channels.`alts!!` takes a set of operations to perform - either a channel to take from or a[channel value] to put and returns the value (nil for put) and channel that succeeded:
100
+
We can create a background thread with alts that combines inputs on either of two channels.`alts!!` takes a set of operations to perform - either a channel to take from or a channel value to put and returns the value (nil for put) and channel that succeeded:
Copy file name to clipboardExpand all lines: docs/walkthrough.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ <h2><a href="#go-blocks-and-ioc-threads" id="go-blocks-and-ioc-threads"></a>Go B
58
58
<p>Instead of the explicit thread and blocking call, we use a go block for the producer. The consumer uses a go block to take, then returns a result channel, from which we do a blocking take.</p>
59
59
<p>== Alts</p>
60
60
<p>One killer feature for channels over queues is the ability to wait on many channels at the same time (like a socket select). This is done with<code>alts!!</code> (ordinary threads) or<code>alts!</code> in go blocks.</p>
61
-
<p>We can create a background thread with alts that combines inputs on either of two channels.<code>alts!!</code> takes a set of operations to perform - either a channel to take from or a<ahref="channel value">channel value</a> to put and returns the value (nil for put) and channel that succeeded:</p>
61
+
<p>We can create a background thread with alts that combines inputs on either of two channels.<code>alts!!</code> takes a set of operations to perform - either a channel to take from or a channel value to put and returns the value (nil for put) and channel that succeeded:</p>