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

Method __init__

tests/async_lock/test_executor.py:71–79  ·  view source on GitHub ↗
(
        self,
        coroutine: Coroutine[None, None, _T],
        cancellation_seen: threading.Event,
        *,
        loop: asyncio.AbstractEventLoop,
    )

Source from the content-addressed store, hash-verified

69
70class _CancellationObservedTask(asyncio.Task[_T]): # pragma: needs fcntl
71 def __init__(
72 self,
73 coroutine: Coroutine[None, None, _T],
74 cancellation_seen: threading.Event,
75 *,
76 loop: asyncio.AbstractEventLoop,
77 ) -> None:
78 self._cancellation_seen = cancellation_seen
79 super().__init__(coroutine, loop=loop)
80
81 def cancel(
82 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected