How to use the aiorwlock.__init__._WriterLock function in aiorwlock

To help you get started, we’ve selected a few aiorwlock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aio-libs / aiorwlock / aiorwlock / __init__.py View on Github external
def __init__(self, *, fast: bool = False, loop: OptLoop = None) -> None:
        self._loop: Loop = loop or asyncio.get_event_loop()
        core = self.core(fast, self._loop)
        self._reader_lock = _ReaderLock(core)
        self._writer_lock = _WriterLock(core)

aiorwlock

Read write lock for asyncio.

Apache-2.0
Latest version published 10 months ago

Package Health Score

80 / 100
Full package analysis

Similar packages