Skip to content

Commit 3a32e80

Browse files
committed
Coroutines
1 parent 218ce50 commit 3a32e80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2263,7 +2263,7 @@ Coroutines
22632263
* **Coroutine definition starts with `'async'` and its call with `'await'`.**
22642264
* **`'asyncio.run(<coroutine>)'` is the main entry point for asynchronous programs.**
22652265
* **Functions wait(), gather() and as_completed() can be used when multiple coroutines need to be started at the same time.**
2266-
* **Asyncio module also provides it's own Queue, Event, Lock and Semaphore classes.**
2266+
* **Asyncio module also provides it's own [Queue](#queue), [Event](#semaphoreeventbarrier), [Lock](#lock) and [Semaphore](#semaphoreeventbarrier) classes.**
22672267

22682268
#### Runs a terminal game where you control an asterisk that must avoid numbers:
22692269

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1963,7 +1963,7 @@
19631963
<li><strong>Coroutine definition starts with <code class="python hljs"><span class="hljs-string">'async'</span></code> and its call with <code class="python hljs"><span class="hljs-string">'await'</span></code>.</strong></li>
19641964
<li><strong><code class="python hljs"><span class="hljs-string">'asyncio.run(&lt;coroutine&gt;)'</span></code> is the main entry point for asynchronous programs.</strong></li>
19651965
<li><strong>Functions wait(), gather() and as_completed() can be used when multiple coroutines need to be started at the same time.</strong></li>
1966-
<li><strong>Asyncio module also provides it's own Queue, Event, Lock and Semaphore classes.</strong></li>
1966+
<li><strong>Asyncio module also provides it's own <a href="#queue">Queue</a>, <a href="#semaphoreeventbarrier">Event</a>, <a href="#lock">Lock</a> and <a href="#semaphoreeventbarrier">Semaphore</a> classes.</strong></li>
19671967
</ul><div><h4 id="runsaterminalgamewhereyoucontrolanasteriskthatmustavoidnumbers">Runs a terminal game where you control an asterisk that must avoid numbers:</h4><pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> asyncio, collections, curses, enum, random
19681968

19691969
P = collections.namedtuple(<span class="hljs-string">'P'</span>, <span class="hljs-string">'x y'</span>) <span class="hljs-comment"># Position</span>

0 commit comments

Comments
 (0)