-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hi Łukasz
I followed your awesome PyCon talk. I did a few similar experiments and I just started to write some music with aiotone.
I have a question about this:
Lines 32 to 33 in e4e999f
| async with self.countdowns_lock: | |
| self.countdowns.append(countdown) |
I have used async back in the tornado days and didn't do much recently. I would only lock if the code was:
async with self.lock:
await ...
.....
await ...(Of course we had only yield)
Otherwise there is nothing that can run in between, right? I guess you write it like that in case you change the code to something more complex.
ambv
Metadata
Metadata
Assignees
Labels
No labels