From e265f891ae56e6609cdc2e3baa529d250e8320b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 29 Feb 2020 15:16:00 +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 0dad69b..53f5d44 100644 --- a/README.md +++ b/README.md @@ -2264,7 +2264,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 its own [Queue](#queue), [Event](#semaphoreeventbarrier), [Lock](#lock) and [Semaphore](#semaphoreeventbarrier) classes.** +* **Asyncio module also provides its own [Queue](#queue), [Event](#semaphore-event-barrier), [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 130de3d..d799d24 100644 --- a/index.html +++ b/index.html @@ -1964,7 +1964,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 its own Queue, Event, Lock and Semaphore classes.
  • +
  • Asyncio module also provides its 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