From fb68edc876b195c57c30aef130aec174366cb6a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 29 Feb 2020 15:24:31 +0100 Subject: [PATCH] Coroutines --- index.html | 2 +- parse.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d799d24..130de3d 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
    diff --git a/parse.js b/parse.js
    index 579ff13..ba4ea83 100755
    --- a/parse.js
    +++ b/parse.js
    @@ -90,6 +90,7 @@ function initDom(html) {
     
     function getMd() {
       var readme = readFile('README.md');
    +  var readme = readme.replace("#semaphore-event-barrier", "#semaphoreeventbarrier");
       const converter = new showdown.Converter();
       return converter.makeHtml(readme);
     }