Skip to content
Myr

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 file

Take 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 back
1"""

Remove unused concurrency test utils (#989)Florimond Mancabefore adoption440b5ab

line 2why, one step back
2Async 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 back
3"""
45import asyncio6

Drop `run` and `run_in_threadpool` (#710)Tom Christiebefore adoption6ac49da

line 7why, one step back
7import sniffio

Drop BackgroundManager in favor of fork(func1, func2) (#603)Florimond Mancabefore adoptionc38fd68

lines 8–10why, one step back
8import trio
910

Remove unused concurrency test utils (#989)Florimond Mancabefore adoption440b5ab

line 11why, one step back
11async def sleep(seconds: float) -> None:

Drop `run` and `run_in_threadpool` (#710)Tom Christiebefore adoption6ac49da

line 12why, one step back
12 if sniffio.current_async_library() == "trio":

Increase test coverage - take 2 (#1012)Josep Cugatbefore adoption620b067

line 13why, one step back
13 await trio.sleep(seconds) # pragma: nocover

Drop `run` and `run_in_threadpool` (#710)Tom Christiebefore adoption6ac49da

lines 14–15why, one step back
14 else:
15 await asyncio.sleep(seconds)