ez-a-sync 0.24.14__tar.gz → 0.24.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ez-a-sync might be problematic. Click here for more details.
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/PKG-INFO +1 -1
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/_smart.py +2 -3
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/_debug.c +62 -62
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/_debug.pyx +8 -8
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/ez_a_sync.egg-info/PKG-INFO +1 -1
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/.coverage +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/.github/workflows/black.yaml +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/.github/workflows/codeql.yaml +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/.github/workflows/docs.yaml +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/.github/workflows/mypy.yaml +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/.github/workflows/pytest.yaml +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/.github/workflows/release.yaml +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/.gitignore +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/.sourcery.yaml +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/LICENSE.txt +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/MANIFEST.in +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/Makefile +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/README.md +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/TODO +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/ENVIRONMENT_VARIABLES.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/__init__.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/__init__.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/_typing.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/__init__.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_descriptor.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_flags.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_flags.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_flags.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_helpers.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_helpers.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_helpers.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_helpers.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_kwargs.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_kwargs.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_kwargs.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/_meta.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/abstract.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/abstract.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/abstract.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/base.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/base.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/base.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/config.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/decorator.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/flags.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/function.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/function.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/function.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/method.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/method.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/method.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/method.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/modifiers/__init__.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/modifiers/cache/__init__.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/modifiers/cache/memory.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/modifiers/limiter.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/modifiers/manager.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/modifiers/manager.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/modifiers/manager.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/modifiers/semaphores.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/property.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/property.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/property.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/a_sync/singleton.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/aliases.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/__init__.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/as_completed.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/as_completed.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/as_completed.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/as_completed.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/create_task.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/create_task.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/create_task.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/create_task.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/gather.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/gather.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/asyncio/gather.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/exceptions.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/executor.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/future.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/iter.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/iter.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/iter.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/__init__.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/__init__.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/_debug.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/_debug.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/_loggable.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/_loggable.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/_loggable.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/_loggable.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/__init__.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/__init__.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/counter.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/counter.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/counter.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/counter.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/event.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/event.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/event.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/event.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/prio_semaphore.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/prio_semaphore.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/prio_semaphore.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/prio_semaphore.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/semaphore.c +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/semaphore.pxd +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/semaphore.pyi +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/locks/semaphore.pyx +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/primitives/queue.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/py.typed +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/sphinx/__init__.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/sphinx/ext.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/task.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/utils/__init__.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/a_sync/utils/iterators.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/Makefile +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/alabaster.css +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/basic.css +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/custom.css +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/doctools.js +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/documentation_options.js +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/file.png +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/language_data.js +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/minus.png +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/plus.png +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/pygments.css +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/searchtools.js +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/_build/html/_static/sphinx_highlight.js +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/conf.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/index.rst +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/docs/make.bat +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/ez_a_sync.egg-info/SOURCES.txt +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/ez_a_sync.egg-info/dependency_links.txt +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/ez_a_sync.egg-info/not-zip-safe +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/ez_a_sync.egg-info/requires.txt +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/ez_a_sync.egg-info/top_level.txt +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/pyproject.yaml +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/requirements-dev.txt +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/requirements.txt +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/setup.cfg +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/setup.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/__init__.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/a_sync/test_abstract.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/a_sync/test_base.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/a_sync/test_cache.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/a_sync/test_decorator.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/a_sync/test_limiter.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/a_sync/test_meta.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/a_sync/test_modified.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/a_sync/test_singleton.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/asyncio/test_as_completed.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/asyncio/test_create_task.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/asyncio/test_gather.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/conftest.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/executor.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/fixtures.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/primitives/test_counter.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/primitives/test_event.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/primitives/test_prio_semaphore.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/primitives/test_queue.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/primitives/test_semaphore.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/task/test_task.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/task/test_task_mapping_views.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/test_executor.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/test_future.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/test_helpers.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/test_iter.py +0 -0
- {ez_a_sync-0.24.14 → ez_a_sync-0.24.15}/tests/test_smart.py +0 -0
|
@@ -6,7 +6,6 @@ to protect tasks from cancellation.
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
import asyncio
|
|
9
|
-
import contextvars
|
|
10
9
|
import logging
|
|
11
10
|
import warnings
|
|
12
11
|
import weakref
|
|
@@ -198,7 +197,7 @@ class SmartFuture(_SmartFutureMixin[T], asyncio.Future):
|
|
|
198
197
|
if key:
|
|
199
198
|
self._key = key
|
|
200
199
|
self._waiters = weakref.WeakSet()
|
|
201
|
-
self.
|
|
200
|
+
self.add_done_callback(SmartFuture._self_done_cleanup_callback)
|
|
202
201
|
|
|
203
202
|
def __repr__(self):
|
|
204
203
|
return f"<{type(self).__name__} key={self._key} waiters={self.num_waiters} {self._state}>"
|
|
@@ -299,7 +298,7 @@ class SmartTask(_SmartFutureMixin[T], asyncio.Task):
|
|
|
299
298
|
"""
|
|
300
299
|
asyncio.Task.__init__(self, coro, loop=loop, name=name)
|
|
301
300
|
self._waiters: Set["asyncio.Task[T]"] = set()
|
|
302
|
-
self.
|
|
301
|
+
self.add_done_callback(SmartTask._self_done_cleanup_callback)
|
|
303
302
|
|
|
304
303
|
|
|
305
304
|
def smart_task_factory(
|
|
@@ -1579,7 +1579,7 @@ static struct __pyx_vtabstruct_6a_sync_10primitives_9_loggable__LoggerMixin *__p
|
|
|
1579
1579
|
*
|
|
1580
1580
|
* cdef class _LoopBoundMixin(_LoggerMixin): # <<<<<<<<<<<<<<
|
|
1581
1581
|
* def __cinit__(self):
|
|
1582
|
-
* self.
|
|
1582
|
+
* self._LoopBoundMixin__loop = None
|
|
1583
1583
|
*/
|
|
1584
1584
|
|
|
1585
1585
|
struct __pyx_vtabstruct_6a_sync_10primitives_6_debug__LoopBoundMixin {
|
|
@@ -3610,7 +3610,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug__get_running_loop(void) {
|
|
|
3610
3610
|
*
|
|
3611
3611
|
* cdef class _LoopBoundMixin(_LoggerMixin):
|
|
3612
3612
|
* def __cinit__(self): # <<<<<<<<<<<<<<
|
|
3613
|
-
* self.
|
|
3613
|
+
* self._LoopBoundMixin__loop = None
|
|
3614
3614
|
* def __init__(self, *, loop=None):
|
|
3615
3615
|
*/
|
|
3616
3616
|
|
|
@@ -3651,7 +3651,7 @@ static int __pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin___cinit__(str
|
|
|
3651
3651
|
/* "a_sync/primitives/_debug.pyx":35
|
|
3652
3652
|
* cdef class _LoopBoundMixin(_LoggerMixin):
|
|
3653
3653
|
* def __cinit__(self):
|
|
3654
|
-
* self.
|
|
3654
|
+
* self._LoopBoundMixin__loop = None # <<<<<<<<<<<<<<
|
|
3655
3655
|
* def __init__(self, *, loop=None):
|
|
3656
3656
|
* if loop is not None:
|
|
3657
3657
|
*/
|
|
@@ -3666,7 +3666,7 @@ static int __pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin___cinit__(str
|
|
|
3666
3666
|
*
|
|
3667
3667
|
* cdef class _LoopBoundMixin(_LoggerMixin):
|
|
3668
3668
|
* def __cinit__(self): # <<<<<<<<<<<<<<
|
|
3669
|
-
* self.
|
|
3669
|
+
* self._LoopBoundMixin__loop = None
|
|
3670
3670
|
* def __init__(self, *, loop=None):
|
|
3671
3671
|
*/
|
|
3672
3672
|
|
|
@@ -3684,7 +3684,7 @@ static int __pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin___cinit__(str
|
|
|
3684
3684
|
|
|
3685
3685
|
/* "a_sync/primitives/_debug.pyx":36
|
|
3686
3686
|
* def __cinit__(self):
|
|
3687
|
-
* self.
|
|
3687
|
+
* self._LoopBoundMixin__loop = None
|
|
3688
3688
|
* def __init__(self, *, loop=None): # <<<<<<<<<<<<<<
|
|
3689
3689
|
* if loop is not None:
|
|
3690
3690
|
* raise TypeError(
|
|
@@ -3780,7 +3780,7 @@ static int __pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_2__init__(str
|
|
|
3780
3780
|
__Pyx_TraceCall("__init__", __pyx_f[0], 36, 0, __PYX_ERR(0, 36, __pyx_L1_error));
|
|
3781
3781
|
|
|
3782
3782
|
/* "a_sync/primitives/_debug.pyx":37
|
|
3783
|
-
* self.
|
|
3783
|
+
* self._LoopBoundMixin__loop = None
|
|
3784
3784
|
* def __init__(self, *, loop=None):
|
|
3785
3785
|
* if loop is not None: # <<<<<<<<<<<<<<
|
|
3786
3786
|
* raise TypeError(
|
|
@@ -3842,7 +3842,7 @@ static int __pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_2__init__(str
|
|
|
3842
3842
|
__PYX_ERR(0, 38, __pyx_L1_error)
|
|
3843
3843
|
|
|
3844
3844
|
/* "a_sync/primitives/_debug.pyx":37
|
|
3845
|
-
* self.
|
|
3845
|
+
* self._LoopBoundMixin__loop = None
|
|
3846
3846
|
* def __init__(self, *, loop=None):
|
|
3847
3847
|
* if loop is not None: # <<<<<<<<<<<<<<
|
|
3848
3848
|
* raise TypeError(
|
|
@@ -3852,7 +3852,7 @@ static int __pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_2__init__(str
|
|
|
3852
3852
|
|
|
3853
3853
|
/* "a_sync/primitives/_debug.pyx":36
|
|
3854
3854
|
* def __cinit__(self):
|
|
3855
|
-
* self.
|
|
3855
|
+
* self._LoopBoundMixin__loop = None
|
|
3856
3856
|
* def __init__(self, *, loop=None): # <<<<<<<<<<<<<<
|
|
3857
3857
|
* if loop is not None:
|
|
3858
3858
|
* raise TypeError(
|
|
@@ -3879,7 +3879,7 @@ static int __pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_2__init__(str
|
|
|
3879
3879
|
* )
|
|
3880
3880
|
* @property # <<<<<<<<<<<<<<
|
|
3881
3881
|
* def _loop(self) -> asyncio.AbstractEventLoop:
|
|
3882
|
-
* return self.
|
|
3882
|
+
* return self._LoopBoundMixin__loop
|
|
3883
3883
|
*/
|
|
3884
3884
|
|
|
3885
3885
|
/* Python wrapper */
|
|
@@ -3910,7 +3910,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_5_loop_
|
|
|
3910
3910
|
/* "a_sync/primitives/_debug.pyx":45
|
|
3911
3911
|
* @property
|
|
3912
3912
|
* def _loop(self) -> asyncio.AbstractEventLoop:
|
|
3913
|
-
* return self.
|
|
3913
|
+
* return self._LoopBoundMixin__loop # <<<<<<<<<<<<<<
|
|
3914
3914
|
* @_loop.setter
|
|
3915
3915
|
* def _loop(self, loop: asyncio.AbstractEventLoop):
|
|
3916
3916
|
*/
|
|
@@ -3925,7 +3925,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_5_loop_
|
|
|
3925
3925
|
* )
|
|
3926
3926
|
* @property # <<<<<<<<<<<<<<
|
|
3927
3927
|
* def _loop(self) -> asyncio.AbstractEventLoop:
|
|
3928
|
-
* return self.
|
|
3928
|
+
* return self._LoopBoundMixin__loop
|
|
3929
3929
|
*/
|
|
3930
3930
|
|
|
3931
3931
|
/* function exit code */
|
|
@@ -3941,10 +3941,10 @@ static PyObject *__pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_5_loop_
|
|
|
3941
3941
|
|
|
3942
3942
|
/* "a_sync/primitives/_debug.pyx":46
|
|
3943
3943
|
* def _loop(self) -> asyncio.AbstractEventLoop:
|
|
3944
|
-
* return self.
|
|
3944
|
+
* return self._LoopBoundMixin__loop
|
|
3945
3945
|
* @_loop.setter # <<<<<<<<<<<<<<
|
|
3946
3946
|
* def _loop(self, loop: asyncio.AbstractEventLoop):
|
|
3947
|
-
* self.
|
|
3947
|
+
* self._LoopBoundMixin__loop = loop
|
|
3948
3948
|
*/
|
|
3949
3949
|
|
|
3950
3950
|
/* Python wrapper */
|
|
@@ -3975,7 +3975,7 @@ static int __pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_5_loop_2__set
|
|
|
3975
3975
|
/* "a_sync/primitives/_debug.pyx":48
|
|
3976
3976
|
* @_loop.setter
|
|
3977
3977
|
* def _loop(self, loop: asyncio.AbstractEventLoop):
|
|
3978
|
-
* self.
|
|
3978
|
+
* self._LoopBoundMixin__loop = loop # <<<<<<<<<<<<<<
|
|
3979
3979
|
* cpdef object _get_loop(self):
|
|
3980
3980
|
* return self._c_get_loop()
|
|
3981
3981
|
*/
|
|
@@ -3988,10 +3988,10 @@ static int __pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_5_loop_2__set
|
|
|
3988
3988
|
|
|
3989
3989
|
/* "a_sync/primitives/_debug.pyx":46
|
|
3990
3990
|
* def _loop(self) -> asyncio.AbstractEventLoop:
|
|
3991
|
-
* return self.
|
|
3991
|
+
* return self._LoopBoundMixin__loop
|
|
3992
3992
|
* @_loop.setter # <<<<<<<<<<<<<<
|
|
3993
3993
|
* def _loop(self, loop: asyncio.AbstractEventLoop):
|
|
3994
|
-
* self.
|
|
3994
|
+
* self._LoopBoundMixin__loop = loop
|
|
3995
3995
|
*/
|
|
3996
3996
|
|
|
3997
3997
|
/* function exit code */
|
|
@@ -4008,7 +4008,7 @@ static int __pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_5_loop_2__set
|
|
|
4008
4008
|
|
|
4009
4009
|
/* "a_sync/primitives/_debug.pyx":49
|
|
4010
4010
|
* def _loop(self, loop: asyncio.AbstractEventLoop):
|
|
4011
|
-
* self.
|
|
4011
|
+
* self._LoopBoundMixin__loop = loop
|
|
4012
4012
|
* cpdef object _get_loop(self): # <<<<<<<<<<<<<<
|
|
4013
4013
|
* return self._c_get_loop()
|
|
4014
4014
|
* cdef object _c_get_loop(self):
|
|
@@ -4091,7 +4091,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__get_loo
|
|
|
4091
4091
|
}
|
|
4092
4092
|
|
|
4093
4093
|
/* "a_sync/primitives/_debug.pyx":50
|
|
4094
|
-
* self.
|
|
4094
|
+
* self._LoopBoundMixin__loop = loop
|
|
4095
4095
|
* cpdef object _get_loop(self):
|
|
4096
4096
|
* return self._c_get_loop() # <<<<<<<<<<<<<<
|
|
4097
4097
|
* cdef object _c_get_loop(self):
|
|
@@ -4107,7 +4107,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__get_loo
|
|
|
4107
4107
|
|
|
4108
4108
|
/* "a_sync/primitives/_debug.pyx":49
|
|
4109
4109
|
* def _loop(self, loop: asyncio.AbstractEventLoop):
|
|
4110
|
-
* self.
|
|
4110
|
+
* self._LoopBoundMixin__loop = loop
|
|
4111
4111
|
* cpdef object _get_loop(self): # <<<<<<<<<<<<<<
|
|
4112
4112
|
* return self._c_get_loop()
|
|
4113
4113
|
* cdef object _c_get_loop(self):
|
|
@@ -4205,7 +4205,7 @@ static PyObject *__pyx_pf_6a_sync_10primitives_6_debug_15_LoopBoundMixin_4_get_l
|
|
|
4205
4205
|
* return self._c_get_loop()
|
|
4206
4206
|
* cdef object _c_get_loop(self): # <<<<<<<<<<<<<<
|
|
4207
4207
|
* cdef object loop = _get_running_loop()
|
|
4208
|
-
* if self.
|
|
4208
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4209
4209
|
*/
|
|
4210
4210
|
|
|
4211
4211
|
static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_loop(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin *__pyx_v_self) {
|
|
@@ -4236,7 +4236,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4236
4236
|
* return self._c_get_loop()
|
|
4237
4237
|
* cdef object _c_get_loop(self):
|
|
4238
4238
|
* cdef object loop = _get_running_loop() # <<<<<<<<<<<<<<
|
|
4239
|
-
* if self.
|
|
4239
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4240
4240
|
* with _global_lock:
|
|
4241
4241
|
*/
|
|
4242
4242
|
__Pyx_TraceLine(52,0,__PYX_ERR(0, 52, __pyx_L1_error))
|
|
@@ -4248,9 +4248,9 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4248
4248
|
/* "a_sync/primitives/_debug.pyx":53
|
|
4249
4249
|
* cdef object _c_get_loop(self):
|
|
4250
4250
|
* cdef object loop = _get_running_loop()
|
|
4251
|
-
* if self.
|
|
4251
|
+
* if self._LoopBoundMixin__loop is None: # <<<<<<<<<<<<<<
|
|
4252
4252
|
* with _global_lock:
|
|
4253
|
-
* if self.
|
|
4253
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4254
4254
|
*/
|
|
4255
4255
|
__Pyx_TraceLine(53,0,__PYX_ERR(0, 53, __pyx_L1_error))
|
|
4256
4256
|
__pyx_t_2 = (__pyx_v_self->_LoopBoundMixin__loop == Py_None);
|
|
@@ -4258,10 +4258,10 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4258
4258
|
|
|
4259
4259
|
/* "a_sync/primitives/_debug.pyx":54
|
|
4260
4260
|
* cdef object loop = _get_running_loop()
|
|
4261
|
-
* if self.
|
|
4261
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4262
4262
|
* with _global_lock: # <<<<<<<<<<<<<<
|
|
4263
|
-
* if self.
|
|
4264
|
-
* self.
|
|
4263
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4264
|
+
* self._LoopBoundMixin__loop = loop
|
|
4265
4265
|
*/
|
|
4266
4266
|
__Pyx_TraceLine(54,0,__PYX_ERR(0, 54, __pyx_L1_error))
|
|
4267
4267
|
/*with:*/ {
|
|
@@ -4306,10 +4306,10 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4306
4306
|
/*try:*/ {
|
|
4307
4307
|
|
|
4308
4308
|
/* "a_sync/primitives/_debug.pyx":55
|
|
4309
|
-
* if self.
|
|
4309
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4310
4310
|
* with _global_lock:
|
|
4311
|
-
* if self.
|
|
4312
|
-
* self.
|
|
4311
|
+
* if self._LoopBoundMixin__loop is None: # <<<<<<<<<<<<<<
|
|
4312
|
+
* self._LoopBoundMixin__loop = loop
|
|
4313
4313
|
* if loop is None:
|
|
4314
4314
|
*/
|
|
4315
4315
|
__Pyx_TraceLine(55,0,__PYX_ERR(0, 55, __pyx_L8_error))
|
|
@@ -4318,8 +4318,8 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4318
4318
|
|
|
4319
4319
|
/* "a_sync/primitives/_debug.pyx":56
|
|
4320
4320
|
* with _global_lock:
|
|
4321
|
-
* if self.
|
|
4322
|
-
* self.
|
|
4321
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4322
|
+
* self._LoopBoundMixin__loop = loop # <<<<<<<<<<<<<<
|
|
4323
4323
|
* if loop is None:
|
|
4324
4324
|
* return get_event_loop()
|
|
4325
4325
|
*/
|
|
@@ -4331,20 +4331,20 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4331
4331
|
__pyx_v_self->_LoopBoundMixin__loop = __pyx_v_loop;
|
|
4332
4332
|
|
|
4333
4333
|
/* "a_sync/primitives/_debug.pyx":55
|
|
4334
|
-
* if self.
|
|
4334
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4335
4335
|
* with _global_lock:
|
|
4336
|
-
* if self.
|
|
4337
|
-
* self.
|
|
4336
|
+
* if self._LoopBoundMixin__loop is None: # <<<<<<<<<<<<<<
|
|
4337
|
+
* self._LoopBoundMixin__loop = loop
|
|
4338
4338
|
* if loop is None:
|
|
4339
4339
|
*/
|
|
4340
4340
|
}
|
|
4341
4341
|
|
|
4342
4342
|
/* "a_sync/primitives/_debug.pyx":54
|
|
4343
4343
|
* cdef object loop = _get_running_loop()
|
|
4344
|
-
* if self.
|
|
4344
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4345
4345
|
* with _global_lock: # <<<<<<<<<<<<<<
|
|
4346
|
-
* if self.
|
|
4347
|
-
* self.
|
|
4346
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4347
|
+
* self._LoopBoundMixin__loop = loop
|
|
4348
4348
|
*/
|
|
4349
4349
|
}
|
|
4350
4350
|
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
@@ -4423,28 +4423,28 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4423
4423
|
/* "a_sync/primitives/_debug.pyx":53
|
|
4424
4424
|
* cdef object _c_get_loop(self):
|
|
4425
4425
|
* cdef object loop = _get_running_loop()
|
|
4426
|
-
* if self.
|
|
4426
|
+
* if self._LoopBoundMixin__loop is None: # <<<<<<<<<<<<<<
|
|
4427
4427
|
* with _global_lock:
|
|
4428
|
-
* if self.
|
|
4428
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4429
4429
|
*/
|
|
4430
4430
|
}
|
|
4431
4431
|
|
|
4432
4432
|
/* "a_sync/primitives/_debug.pyx":57
|
|
4433
|
-
* if self.
|
|
4434
|
-
* self.
|
|
4433
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4434
|
+
* self._LoopBoundMixin__loop = loop
|
|
4435
4435
|
* if loop is None: # <<<<<<<<<<<<<<
|
|
4436
4436
|
* return get_event_loop()
|
|
4437
|
-
* elif loop is not self.
|
|
4437
|
+
* elif loop is not self._LoopBoundMixin__loop:
|
|
4438
4438
|
*/
|
|
4439
4439
|
__Pyx_TraceLine(57,0,__PYX_ERR(0, 57, __pyx_L1_error))
|
|
4440
4440
|
__pyx_t_12 = (__pyx_v_loop == Py_None);
|
|
4441
4441
|
if (__pyx_t_12) {
|
|
4442
4442
|
|
|
4443
4443
|
/* "a_sync/primitives/_debug.pyx":58
|
|
4444
|
-
* self.
|
|
4444
|
+
* self._LoopBoundMixin__loop = loop
|
|
4445
4445
|
* if loop is None:
|
|
4446
4446
|
* return get_event_loop() # <<<<<<<<<<<<<<
|
|
4447
|
-
* elif loop is not self.
|
|
4447
|
+
* elif loop is not self._LoopBoundMixin__loop:
|
|
4448
4448
|
* raise RuntimeError(
|
|
4449
4449
|
*/
|
|
4450
4450
|
__Pyx_TraceLine(58,0,__PYX_ERR(0, 58, __pyx_L1_error))
|
|
@@ -4456,18 +4456,18 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4456
4456
|
goto __pyx_L0;
|
|
4457
4457
|
|
|
4458
4458
|
/* "a_sync/primitives/_debug.pyx":57
|
|
4459
|
-
* if self.
|
|
4460
|
-
* self.
|
|
4459
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4460
|
+
* self._LoopBoundMixin__loop = loop
|
|
4461
4461
|
* if loop is None: # <<<<<<<<<<<<<<
|
|
4462
4462
|
* return get_event_loop()
|
|
4463
|
-
* elif loop is not self.
|
|
4463
|
+
* elif loop is not self._LoopBoundMixin__loop:
|
|
4464
4464
|
*/
|
|
4465
4465
|
}
|
|
4466
4466
|
|
|
4467
4467
|
/* "a_sync/primitives/_debug.pyx":59
|
|
4468
4468
|
* if loop is None:
|
|
4469
4469
|
* return get_event_loop()
|
|
4470
|
-
* elif loop is not self.
|
|
4470
|
+
* elif loop is not self._LoopBoundMixin__loop: # <<<<<<<<<<<<<<
|
|
4471
4471
|
* raise RuntimeError(
|
|
4472
4472
|
* f'{self!r} is bound to a different event loop',
|
|
4473
4473
|
*/
|
|
@@ -4476,11 +4476,11 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4476
4476
|
if (unlikely(__pyx_t_12)) {
|
|
4477
4477
|
|
|
4478
4478
|
/* "a_sync/primitives/_debug.pyx":61
|
|
4479
|
-
* elif loop is not self.
|
|
4479
|
+
* elif loop is not self._LoopBoundMixin__loop:
|
|
4480
4480
|
* raise RuntimeError(
|
|
4481
4481
|
* f'{self!r} is bound to a different event loop', # <<<<<<<<<<<<<<
|
|
4482
4482
|
* "running loop: ".format(loop),
|
|
4483
|
-
* "bound to: ".format(self.
|
|
4483
|
+
* "bound to: ".format(self._LoopBoundMixin__loop),
|
|
4484
4484
|
*/
|
|
4485
4485
|
__Pyx_TraceLine(61,0,__PYX_ERR(0, 61, __pyx_L1_error))
|
|
4486
4486
|
__pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(((PyObject *)__pyx_v_self)), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 61, __pyx_L1_error)
|
|
@@ -4493,7 +4493,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4493
4493
|
* raise RuntimeError(
|
|
4494
4494
|
* f'{self!r} is bound to a different event loop',
|
|
4495
4495
|
* "running loop: ".format(loop), # <<<<<<<<<<<<<<
|
|
4496
|
-
* "bound to: ".format(self.
|
|
4496
|
+
* "bound to: ".format(self._LoopBoundMixin__loop),
|
|
4497
4497
|
* )
|
|
4498
4498
|
*/
|
|
4499
4499
|
__Pyx_TraceLine(62,0,__PYX_ERR(0, 62, __pyx_L1_error))
|
|
@@ -4525,7 +4525,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4525
4525
|
/* "a_sync/primitives/_debug.pyx":63
|
|
4526
4526
|
* f'{self!r} is bound to a different event loop',
|
|
4527
4527
|
* "running loop: ".format(loop),
|
|
4528
|
-
* "bound to: ".format(self.
|
|
4528
|
+
* "bound to: ".format(self._LoopBoundMixin__loop), # <<<<<<<<<<<<<<
|
|
4529
4529
|
* )
|
|
4530
4530
|
* return loop
|
|
4531
4531
|
*/
|
|
@@ -4557,7 +4557,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4557
4557
|
|
|
4558
4558
|
/* "a_sync/primitives/_debug.pyx":60
|
|
4559
4559
|
* return get_event_loop()
|
|
4560
|
-
* elif loop is not self.
|
|
4560
|
+
* elif loop is not self._LoopBoundMixin__loop:
|
|
4561
4561
|
* raise RuntimeError( # <<<<<<<<<<<<<<
|
|
4562
4562
|
* f'{self!r} is bound to a different event loop',
|
|
4563
4563
|
* "running loop: ".format(loop),
|
|
@@ -4584,14 +4584,14 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4584
4584
|
/* "a_sync/primitives/_debug.pyx":59
|
|
4585
4585
|
* if loop is None:
|
|
4586
4586
|
* return get_event_loop()
|
|
4587
|
-
* elif loop is not self.
|
|
4587
|
+
* elif loop is not self._LoopBoundMixin__loop: # <<<<<<<<<<<<<<
|
|
4588
4588
|
* raise RuntimeError(
|
|
4589
4589
|
* f'{self!r} is bound to a different event loop',
|
|
4590
4590
|
*/
|
|
4591
4591
|
}
|
|
4592
4592
|
|
|
4593
4593
|
/* "a_sync/primitives/_debug.pyx":65
|
|
4594
|
-
* "bound to: ".format(self.
|
|
4594
|
+
* "bound to: ".format(self._LoopBoundMixin__loop),
|
|
4595
4595
|
* )
|
|
4596
4596
|
* return loop # <<<<<<<<<<<<<<
|
|
4597
4597
|
*
|
|
@@ -4608,7 +4608,7 @@ static PyObject *__pyx_f_6a_sync_10primitives_6_debug_15_LoopBoundMixin__c_get_l
|
|
|
4608
4608
|
* return self._c_get_loop()
|
|
4609
4609
|
* cdef object _c_get_loop(self): # <<<<<<<<<<<<<<
|
|
4610
4610
|
* cdef object loop = _get_running_loop()
|
|
4611
|
-
* if self.
|
|
4611
|
+
* if self._LoopBoundMixin__loop is None:
|
|
4612
4612
|
*/
|
|
4613
4613
|
|
|
4614
4614
|
/* function exit code */
|
|
@@ -6827,10 +6827,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
|
|
|
6827
6827
|
|
|
6828
6828
|
/* "a_sync/primitives/_debug.pyx":54
|
|
6829
6829
|
* cdef object loop = _get_running_loop()
|
|
6830
|
-
* if self.
|
|
6830
|
+
* if self._LoopBoundMixin__loop is None:
|
|
6831
6831
|
* with _global_lock: # <<<<<<<<<<<<<<
|
|
6832
|
-
* if self.
|
|
6833
|
-
* self.
|
|
6832
|
+
* if self._LoopBoundMixin__loop is None:
|
|
6833
|
+
* self._LoopBoundMixin__loop = loop
|
|
6834
6834
|
*/
|
|
6835
6835
|
__pyx_tuple__2 = PyTuple_Pack(3, Py_None, Py_None, Py_None); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 54, __pyx_L1_error)
|
|
6836
6836
|
__Pyx_GOTREF(__pyx_tuple__2);
|
|
@@ -6838,7 +6838,7 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
|
|
|
6838
6838
|
|
|
6839
6839
|
/* "a_sync/primitives/_debug.pyx":49
|
|
6840
6840
|
* def _loop(self, loop: asyncio.AbstractEventLoop):
|
|
6841
|
-
* self.
|
|
6841
|
+
* self._LoopBoundMixin__loop = loop
|
|
6842
6842
|
* cpdef object _get_loop(self): # <<<<<<<<<<<<<<
|
|
6843
6843
|
* return self._c_get_loop()
|
|
6844
6844
|
* cdef object _c_get_loop(self):
|
|
@@ -7554,7 +7554,7 @@ if (!__Pyx_RefNanny) {
|
|
|
7554
7554
|
|
|
7555
7555
|
/* "a_sync/primitives/_debug.pyx":49
|
|
7556
7556
|
* def _loop(self, loop: asyncio.AbstractEventLoop):
|
|
7557
|
-
* self.
|
|
7557
|
+
* self._LoopBoundMixin__loop = loop
|
|
7558
7558
|
* cpdef object _get_loop(self): # <<<<<<<<<<<<<<
|
|
7559
7559
|
* return self._c_get_loop()
|
|
7560
7560
|
* cdef object _c_get_loop(self):
|
|
@@ -7572,7 +7572,7 @@ if (!__Pyx_RefNanny) {
|
|
|
7572
7572
|
* return self._c_get_loop()
|
|
7573
7573
|
* cdef object _c_get_loop(self): # <<<<<<<<<<<<<<
|
|
7574
7574
|
* cdef object loop = _get_running_loop()
|
|
7575
|
-
* if self.
|
|
7575
|
+
* if self._LoopBoundMixin__loop is None:
|
|
7576
7576
|
*/
|
|
7577
7577
|
__Pyx_TraceLine(51,0,__PYX_ERR(0, 51, __pyx_L1_error))
|
|
7578
7578
|
|
|
@@ -32,7 +32,7 @@ cdef object _get_running_loop():
|
|
|
32
32
|
|
|
33
33
|
cdef class _LoopBoundMixin(_LoggerMixin):
|
|
34
34
|
def __cinit__(self):
|
|
35
|
-
self.
|
|
35
|
+
self._LoopBoundMixin__loop = None
|
|
36
36
|
def __init__(self, *, loop=None):
|
|
37
37
|
if loop is not None:
|
|
38
38
|
raise TypeError(
|
|
@@ -42,25 +42,25 @@ cdef class _LoopBoundMixin(_LoggerMixin):
|
|
|
42
42
|
)
|
|
43
43
|
@property
|
|
44
44
|
def _loop(self) -> asyncio.AbstractEventLoop:
|
|
45
|
-
return self.
|
|
45
|
+
return self._LoopBoundMixin__loop
|
|
46
46
|
@_loop.setter
|
|
47
47
|
def _loop(self, loop: asyncio.AbstractEventLoop):
|
|
48
|
-
self.
|
|
48
|
+
self._LoopBoundMixin__loop = loop
|
|
49
49
|
cpdef object _get_loop(self):
|
|
50
50
|
return self._c_get_loop()
|
|
51
51
|
cdef object _c_get_loop(self):
|
|
52
52
|
cdef object loop = _get_running_loop()
|
|
53
|
-
if self.
|
|
53
|
+
if self._LoopBoundMixin__loop is None:
|
|
54
54
|
with _global_lock:
|
|
55
|
-
if self.
|
|
56
|
-
self.
|
|
55
|
+
if self._LoopBoundMixin__loop is None:
|
|
56
|
+
self._LoopBoundMixin__loop = loop
|
|
57
57
|
if loop is None:
|
|
58
58
|
return get_event_loop()
|
|
59
|
-
elif loop is not self.
|
|
59
|
+
elif loop is not self._LoopBoundMixin__loop:
|
|
60
60
|
raise RuntimeError(
|
|
61
61
|
f'{self!r} is bound to a different event loop',
|
|
62
62
|
"running loop: ".format(loop),
|
|
63
|
-
"bound to: ".format(self.
|
|
63
|
+
"bound to: ".format(self._LoopBoundMixin__loop),
|
|
64
64
|
)
|
|
65
65
|
return loop
|
|
66
66
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|