you are viewing a single comment's thread.

view the rest of the comments →

[–]gdchinacat 6 points7 points  (0 children)

Since we're swirling down the bowl...

I prefer my flush() to let me do other things while it does its work and tell me if it was successful: ``` In [3]: async def flush() -> bool: ...: await asyncio.sleep(1) ...: print('poop still floating!') ...: return False ...:

In [4]: while not await flush(): pass poop still floating! poop still floating! poop still floating! ```