Skip to content

Commit 3ec9930

Browse files
committed
Asyncio
1 parent d598b43 commit 3ec9930

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +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.**
22662267

22672268
#### Runs a terminal game where you control an asterisk that must avoid numbers:
22682269

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,6 +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>
19661967
</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
19671968

19681969
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)