---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs
---
ASYNC100 A `with trio.fail_after(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
 --> ASYNC100.py:8:5
  |
7 |   async def func():
8 | /     with trio.fail_after():
9 | |         ...
  | |___________^
  |

ASYNC100 A `with trio.move_on_after(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
  --> ASYNC100.py:18:5
   |
17 |   async def func():
18 | /     with trio.move_on_after():
19 | |         ...
   | |___________^
   |

ASYNC100 A `with anyio.move_on_after(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
  --> ASYNC100.py:45:5
   |
44 |   async def func():
45 | /     with anyio.move_on_after(delay=0.2):
46 | |         ...
   | |___________^
   |

ASYNC100 A `with anyio.fail_after(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
  --> ASYNC100.py:50:5
   |
49 |   async def func():
50 | /     with anyio.fail_after():
51 | |         ...
   | |___________^
   |

ASYNC100 A `with anyio.CancelScope(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
  --> ASYNC100.py:55:5
   |
54 |   async def func():
55 | /     with anyio.CancelScope():
56 | |         ...
   | |___________^
   |

ASYNC100 A `with anyio.CancelScope(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
  --> ASYNC100.py:60:5
   |
59 |   async def func():
60 | /     with anyio.CancelScope(), nullcontext():
61 | |         ...
   | |___________^
   |

ASYNC100 A `with anyio.CancelScope(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
  --> ASYNC100.py:65:5
   |
64 |   async def func():
65 | /     with nullcontext(), anyio.CancelScope():
66 | |         ...
   | |___________^
   |

ASYNC100 A `with asyncio.timeout(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
  --> ASYNC100.py:70:5
   |
69 |   async def func():
70 | /     async with asyncio.timeout(delay=0.2):
71 | |         ...
   | |___________^
   |

ASYNC100 A `with asyncio.timeout_at(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
  --> ASYNC100.py:75:5
   |
74 |   async def func():
75 | /     async with asyncio.timeout_at(when=0.2):
76 | |         ...
   | |___________^
   |

ASYNC100 A `with asyncio.timeout(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
  --> ASYNC100.py:85:5
   |
84 |   async def func():
85 | /     async with asyncio.timeout(delay=0.2), asyncio.TaskGroup(), asyncio.timeout(delay=0.2):
86 | |         ...
   | |___________^
   |

ASYNC100 A `with asyncio.timeout(...):` context does not contain any `await` statements. This makes it pointless, as the timeout can only be triggered by a checkpoint.
  --> ASYNC100.py:95:5
   |
94 |   async def func():
95 | /     async with asyncio.timeout(delay=0.2), asyncio.timeout(delay=0.2):
96 | |         ...
   | |___________^
   |
