concurrency.py
This file
Path
tests/concurrency.py
15 lines · 323 bytes · Python
Last changed by
Increase test coverage - take 2 (#1012)Josep Cugatbefore adoption620b067
History of this fileTake it
The walk stopped after 200 commits: lines older than c38fd68 point at it.
Drop BackgroundManager in favor of fork(func1, func2) (#603)Florimond Mancabefore adoptionc38fd68
line 1why, one step back1"""Remove unused concurrency test utils (#989)Florimond Mancabefore adoption440b5ab
line 2why, one step back2Async environment-agnostic concurrency utilities that are only used in tests.Drop BackgroundManager in favor of fork(func1, func2) (#603)Florimond Mancabefore adoptionc38fd68
lines 3–6why, one step back3"""45import asyncio6Drop `run` and `run_in_threadpool` (#710)Tom Christiebefore adoption6ac49da
line 7why, one step back7import sniffioDrop BackgroundManager in favor of fork(func1, func2) (#603)Florimond Mancabefore adoptionc38fd68
lines 8–10why, one step back8import trio910Remove unused concurrency test utils (#989)Florimond Mancabefore adoption440b5ab
line 11why, one step back11async def sleep(seconds: float) -> None:Drop `run` and `run_in_threadpool` (#710)Tom Christiebefore adoption6ac49da
line 12why, one step back12 if sniffio.current_async_library() == "trio":Increase test coverage - take 2 (#1012)Josep Cugatbefore adoption620b067
line 13why, one step back13 await trio.sleep(seconds) # pragma: nocoverDrop `run` and `run_in_threadpool` (#710)Tom Christiebefore adoption6ac49da
lines 14–15why, one step back14 else:15 await asyncio.sleep(seconds)