Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missed assert
  • Loading branch information
Gobot1234 committed Oct 1, 2023
commit 0698b29fd304c1c68c0bcfa14d93cf440cccd12e
1 change: 1 addition & 0 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async def main():
tg.create_task(poll_database(db))
await asyncio.sleep(1)

assert task
print(f"{task.cancelling()=} should be 0")

try:
Expand Down