Skip to content
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions asyncer/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ async def do_work(name: str) -> str:
result1 = task_group.soonify(do_work)(name="task 1")
result2 = task_group.soonify(do_work)(name="task 2")
await anyio.sleep(0)
if not result1.pending:
if result1.ready:
print(result1.value)
if not result2.pending:
if result2.ready:
print(result2.value)
```

Expand Down