Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)