--- a/buggy.py
+++ b/buggy.py
@@ -14,7 +14,8 @@
     task_b = asyncio.create_task(waiter(event, "B", results))

     event.set()
-    event.clear()
+    await asyncio.sleep(0)
+    event.clear()

     await task_a
     await task_b
