---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs
---
ASYNC220 Async functions should not create subprocesses with blocking methods
  --> ASYNC22x.py:31:5
   |
29 |         subprocess.getoutput()  # ASYNC221
30 |     )
31 |     subprocess.Popen()  # ASYNC220
   |     ^^^^^^^^^^^^^^^^
32 |     os.system()  # ASYNC221
   |

ASYNC220 Async functions should not create subprocesses with blocking methods
  --> ASYNC22x.py:73:5
   |
72 |     # if mode is given, and is not os.P_WAIT: ASYNC220
73 |     os.spawnl(os.P_NOWAIT)  # ASYNC220
   |     ^^^^^^^^^
74 |     os.spawnl(P_NOWAIT)  # ASYNC220
75 |     os.spawnl(mode=os.P_NOWAIT)  # ASYNC220
   |

ASYNC220 Async functions should not create subprocesses with blocking methods
  --> ASYNC22x.py:74:5
   |
72 |     # if mode is given, and is not os.P_WAIT: ASYNC220
73 |     os.spawnl(os.P_NOWAIT)  # ASYNC220
74 |     os.spawnl(P_NOWAIT)  # ASYNC220
   |     ^^^^^^^^^
75 |     os.spawnl(mode=os.P_NOWAIT)  # ASYNC220
76 |     os.spawnl(mode=P_NOWAIT)  # ASYNC220
   |

ASYNC220 Async functions should not create subprocesses with blocking methods
  --> ASYNC22x.py:75:5
   |
73 |     os.spawnl(os.P_NOWAIT)  # ASYNC220
74 |     os.spawnl(P_NOWAIT)  # ASYNC220
75 |     os.spawnl(mode=os.P_NOWAIT)  # ASYNC220
   |     ^^^^^^^^^
76 |     os.spawnl(mode=P_NOWAIT)  # ASYNC220
   |

ASYNC220 Async functions should not create subprocesses with blocking methods
  --> ASYNC22x.py:76:5
   |
74 |     os.spawnl(P_NOWAIT)  # ASYNC220
75 |     os.spawnl(mode=os.P_NOWAIT)  # ASYNC220
76 |     os.spawnl(mode=P_NOWAIT)  # ASYNC220
   |     ^^^^^^^^^
77 |
78 |     P_WAIT = os.P_WAIT
   |

ASYNC220 Async functions should not create subprocesses with blocking methods
  --> ASYNC22x.py:86:5
   |
85 |     # other weird cases: ASYNC220
86 |     os.spawnl(0)  # ASYNC220
   |     ^^^^^^^^^
87 |     os.spawnl(1)  # ASYNC220
88 |     os.spawnl(foo())  # ASYNC220
   |

ASYNC220 Async functions should not create subprocesses with blocking methods
  --> ASYNC22x.py:87:5
   |
85 |     # other weird cases: ASYNC220
86 |     os.spawnl(0)  # ASYNC220
87 |     os.spawnl(1)  # ASYNC220
   |     ^^^^^^^^^
88 |     os.spawnl(foo())  # ASYNC220
   |

ASYNC220 Async functions should not create subprocesses with blocking methods
  --> ASYNC22x.py:88:5
   |
86 |     os.spawnl(0)  # ASYNC220
87 |     os.spawnl(1)  # ASYNC220
88 |     os.spawnl(foo())  # ASYNC220
   |     ^^^^^^^^^
89 |
90 |     # ASYNC222
   |
