MCPcopy Create free account
hub / github.com/tox-dev/filelock / async_options

Function async_options

tests/async_lock/test_singleton.py:35–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34@pytest.fixture
35def 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)

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected