X7ROOT File Manager
Current Path:
/opt/alt/python310/lib64/python3.10/asyncio
opt
/
alt
/
python310
/
lib64
/
python3.10
/
asyncio
/
ðŸ“
..
📄
__init__.py
(1.08 KB)
📄
__main__.py
(3.3 KB)
ðŸ“
__pycache__
📄
base_events.py
(72.6 KB)
📄
base_futures.py
(2.51 KB)
📄
base_subprocess.py
(8.64 KB)
📄
base_tasks.py
(2.41 KB)
📄
constants.py
(888 B)
📄
coroutines.py
(8.59 KB)
📄
events.py
(26.71 KB)
📄
exceptions.py
(1.59 KB)
📄
format_helpers.py
(2.35 KB)
📄
futures.py
(13.85 KB)
📄
locks.py
(13.79 KB)
📄
log.py
(124 B)
📄
mixins.py
(803 B)
📄
proactor_events.py
(31.78 KB)
📄
protocols.py
(6.79 KB)
📄
queues.py
(7.85 KB)
📄
runners.py
(2.05 KB)
📄
selector_events.py
(38.77 KB)
📄
sslproto.py
(26.82 KB)
📄
staggered.py
(5.85 KB)
📄
streams.py
(25.15 KB)
📄
subprocess.py
(7.23 KB)
📄
tasks.py
(31.7 KB)
📄
threads.py
(790 B)
📄
transports.py
(10.47 KB)
📄
trsock.py
(5.74 KB)
📄
unix_events.py
(50.41 KB)
📄
windows_events.py
(32.66 KB)
📄
windows_utils.py
(4.94 KB)
Editing: mixins.py
"""Event loop mixins.""" import threading from . import events _global_lock = threading.Lock() # Used as a sentinel for loop parameter _marker = object() class _LoopBoundMixin: _loop = None def __init__(self, *, loop=_marker): if loop is not _marker: raise TypeError( f'As of 3.10, the *loop* parameter was removed from ' f'{type(self).__name__}() since it is no longer necessary' ) 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
Upload File
Create Folder