python_async_loops

Eight different ways to implement an asyncronous loop in python  http://tobib.spline.de/xi/posts/2023-01-29-python-async-loops/
git clone https://git.ce9e.org/python_async_loops.git

commit
e3d1b66c9f179fa30108846fd4d9e5e7f4bab967
parent
558404f360c439a891c61eb01cfdd27a9631ea44
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-02-04 18:16
fix empty set syntax

Diffstat

M 06_generator_loop.py 2 +-
M 07_async_await_loop.py 2 +-

2 files changed, 2 insertions, 2 deletions


diff --git a/06_generator_loop.py b/06_generator_loop.py

@@ -29,7 +29,7 @@ class Task:
   29    29     def __init__(self, gen):
   30    30         self.gen = gen
   31    31         self.files = set()
   32    -1         self.times = {}
   -1    32         self.times = set()
   33    33         self.done = False
   34    34         self.result = None
   35    35 

diff --git a/07_async_await_loop.py b/07_async_await_loop.py

@@ -38,7 +38,7 @@ class Task:
   38    38     def __init__(self, coro):
   39    39         self.gen = coro.__await__()
   40    40         self.files = set()
   41    -1         self.times = {}
   -1    41         self.times = set()
   42    42         self.done = False
   43    43         self.result = None
   44    44