()
| 33 | |
| 34 | @pytest.fixture |
| 35 | def async_options() -> Iterator[_AsyncOptions]: |
| 36 | loop = asyncio.new_event_loop() |
| 37 | with ThreadPoolExecutor() as executor: |
| 38 | yield {"loop": loop, "executor": executor, "run_in_executor": False} |
| 39 | loop.close() |
| 40 | |
| 41 | |
| 42 | @pytest.mark.parametrize("lock_type", _ASYNC_SINGLETON_TYPES) |