(token: str)
| 211 | ) |
| 212 | |
| 213 | async def append(token: str) -> None: |
| 214 | await local_service.exec( |
| 215 | workspace.id, |
| 216 | ExecRequest( |
| 217 | cmd=( |
| 218 | "sh", |
| 219 | "-c", |
| 220 | f"printf {token} >> log.txt && sleep 0.2 && printf {token} >> log.txt", |
| 221 | ), |
| 222 | command_kind=CommandKind.WRITE, |
| 223 | ), |
| 224 | ) |
| 225 | |
| 226 | await asyncio.gather(append("A"), append("B")) |
| 227 |
no test coverage detected