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 / 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)


Read write lock for asyncio.

Latest version published 5 months ago

Package Health Score

85 / 100
Full package analysis

Similar packages