mirror of https://github.com/astral-sh/ruff
28 lines
373 B
Python
28 lines
373 B
Python
import trio
|
|
|
|
|
|
async def func():
|
|
with trio.fail_after():
|
|
...
|
|
|
|
|
|
async def func():
|
|
with trio.fail_at():
|
|
await ...
|
|
|
|
|
|
async def func():
|
|
with trio.move_on_after():
|
|
...
|
|
|
|
|
|
async def func():
|
|
with trio.move_at():
|
|
await ...
|
|
|
|
|
|
async def func():
|
|
with trio.move_at():
|
|
async with trio.open_nursery() as nursery:
|
|
...
|