PATH:
opt
/
alt
/
python311
/
lib64
/
python3.11
/
asyncio
"""Event loop mixins.""" import threading from . import events _global_lock = threading.Lock() class _LoopBoundMixin: _loop = None def _get_loop(self): loop = events._get_running_loop() if self._loop is None: with _global_lock: if self._loop is None: self._loop = loop if loop is not self._loop: raise RuntimeError(f'{self!r} is bound to a different event loop') return loop
[-] unix_events.py
[edit]
[-] futures.py
[edit]
[-] protocols.py
[edit]
[-] runners.py
[edit]
[-] windows_utils.py
[edit]
[-] events.py
[edit]
[-] exceptions.py
[edit]
[-] base_subprocess.py
[edit]
[+]
..
[-] queues.py
[edit]
[-] transports.py
[edit]
[-] timeouts.py
[edit]
[-] __main__.py
[edit]
[-] selector_events.py
[edit]
[-] mixins.py
[edit]
[-] base_events.py
[edit]
[-] trsock.py
[edit]
[-] staggered.py
[edit]
[-] windows_events.py
[edit]
[-] streams.py
[edit]
[-] base_futures.py
[edit]
[-] constants.py
[edit]
[+]
__pycache__
[-] threads.py
[edit]
[-] subprocess.py
[edit]
[-] tasks.py
[edit]
[-] proactor_events.py
[edit]
[-] taskgroups.py
[edit]
[-] log.py
[edit]
[-] locks.py
[edit]
[-] format_helpers.py
[edit]
[-] __init__.py
[edit]
[-] sslproto.py
[edit]
[-] base_tasks.py
[edit]
[-] coroutines.py
[edit]