From 3a32e8094ac2533536cc88c296742c6978e93199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 19 Feb 2020 08:12:01 +0100 Subject: [PATCH] Coroutines --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 457b032..d08ae7f 100644 --- a/README.md +++ b/README.md @@ -2263,7 +2263,7 @@ Coroutines * **Coroutine definition starts with `'async'` and its call with `'await'`.** * **`'asyncio.run()'` is the main entry point for asynchronous programs.** * **Functions wait(), gather() and as_completed() can be used when multiple coroutines need to be started at the same time.** -* **Asyncio module also provides it's own Queue, Event, Lock and Semaphore classes.** +* **Asyncio module also provides it's own [Queue](#queue), [Event](#semaphoreeventbarrier), [Lock](#lock) and [Semaphore](#semaphoreeventbarrier) classes.** #### Runs a terminal game where you control an asterisk that must avoid numbers: diff --git a/index.html b/index.html index b41eaf4..fa7ad5f 100644 --- a/index.html +++ b/index.html @@ -1963,7 +1963,7 @@ ValueError: malformed node or string
  • Coroutine definition starts with 'async' and its call with 'await'.
  • 'asyncio.run(<coroutine>)' is the main entry point for asynchronous programs.
  • Functions wait(), gather() and as_completed() can be used when multiple coroutines need to be started at the same time.
  • -
  • Asyncio module also provides it's own Queue, Event, Lock and Semaphore classes.
  • +
  • Asyncio module also provides it's own Queue, Event, Lock and Semaphore classes.
  • Runs a terminal game where you control an asterisk that must avoid numbers:

    import asyncio, collections, curses, enum, random
     
     P = collections.namedtuple('P', 'x y')         # Position