ez-a-sync 0.22.9__py3-none-any.whl → 0.22.11__py3-none-any.whl
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.
- a_sync/executor.py +7 -1
- a_sync/iter.py +4 -1
- {ez_a_sync-0.22.9.dist-info → ez_a_sync-0.22.11.dist-info}/METADATA +1 -1
- {ez_a_sync-0.22.9.dist-info → ez_a_sync-0.22.11.dist-info}/RECORD +7 -7
- {ez_a_sync-0.22.9.dist-info → ez_a_sync-0.22.11.dist-info}/WHEEL +1 -1
- {ez_a_sync-0.22.9.dist-info → ez_a_sync-0.22.11.dist-info}/LICENSE.txt +0 -0
- {ez_a_sync-0.22.9.dist-info → ez_a_sync-0.22.11.dist-info}/top_level.txt +0 -0
a_sync/executor.py
CHANGED
|
@@ -112,10 +112,16 @@ class _AsyncExecutorMixin(cf.Executor, _DebugDaemonMixin):
|
|
|
112
112
|
*args: Positional arguments for the function.
|
|
113
113
|
**kwargs: Keyword arguments for the function.
|
|
114
114
|
"""
|
|
115
|
+
# TODO: make prettier strings for other types
|
|
116
|
+
if type(fn).__name__ == "function":
|
|
117
|
+
fn = getattr(fn, '__qualname__', fn)
|
|
118
|
+
|
|
119
|
+
msg = f"%s processing %s{args}{kwargs}"
|
|
120
|
+
|
|
115
121
|
while not fut.done():
|
|
116
122
|
await asyncio.sleep(15)
|
|
117
123
|
if not fut.done():
|
|
118
|
-
self.logger.debug(
|
|
124
|
+
self.logger.debug(msg, self, fn)
|
|
119
125
|
|
|
120
126
|
# Process
|
|
121
127
|
|
a_sync/iter.py
CHANGED
|
@@ -137,7 +137,10 @@ class ASyncIterable(_AwaitableAsyncIterableMixin[T], Iterable[T]):
|
|
|
137
137
|
self.__wrapped__ = async_iterable
|
|
138
138
|
"The wrapped async iterable object."
|
|
139
139
|
def __repr__(self) -> str:
|
|
140
|
-
|
|
140
|
+
start = f"<{type(self).__name__}"
|
|
141
|
+
if wrapped := getattr(self, "__wrapped__", None):
|
|
142
|
+
start += f" for {self.__wrapped__}"
|
|
143
|
+
return f"{start} at {hex(id(self))}>"
|
|
141
144
|
|
|
142
145
|
def __aiter__(self) -> AsyncIterator[T]:
|
|
143
146
|
"""
|
|
@@ -4,9 +4,9 @@ a_sync/_smart.py,sha256=mZ7zD8usbRG3dEjddwnz46gwFxcDjPri6na7vCPX9hw,6989
|
|
|
4
4
|
a_sync/_typing.py,sha256=GTCqBBgeCGoB_wLb0WoizBrrYf2a-2GXgK82CZQKP2E,5368
|
|
5
5
|
a_sync/aliases.py,sha256=kkv7JGdlJeyy2x8JauCy3D6spbYBCTMgNtC_QrT118s,213
|
|
6
6
|
a_sync/exceptions.py,sha256=0VHUEBgTVmaF8LIuFINCv1YCuC_GfCJgmwnPP3I9HRI,6597
|
|
7
|
-
a_sync/executor.py,sha256=
|
|
7
|
+
a_sync/executor.py,sha256=TksELrnod_rLf8kvtb3KWLt6Wp3dXgAnD-kE_LCvOrE,13163
|
|
8
8
|
a_sync/future.py,sha256=zQy3Gv1UvX399Yx5-W-ygxYZSS_C3aEhQlEz8gyoB90,26093
|
|
9
|
-
a_sync/iter.py,sha256=
|
|
9
|
+
a_sync/iter.py,sha256=riMXy2RSxmOtgv-L521YSWSTeZ8QXWhc8irU6mjEgkk,20804
|
|
10
10
|
a_sync/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
a_sync/task.py,sha256=FEf788GSKzBCOqjtljlqKlisT5ZyK_kCa-d_-KTSuOc,28213
|
|
12
12
|
a_sync/a_sync/__init__.py,sha256=V93WFLhKbDR9oSegknq6ub-M85HT983eIt_Tov0Reos,1092
|
|
@@ -67,8 +67,8 @@ tests/test_modified.py,sha256=H_Z98JNvy1Ze2Qae6Jgyo1gPqOGycVkwmGutrSmnQmk,247
|
|
|
67
67
|
tests/test_semaphore.py,sha256=pncCO3Y_xus9f85nCPY6Pr4WbUbHpNZNT5tBgwUAbZA,1628
|
|
68
68
|
tests/test_singleton.py,sha256=KGLLWr4eM3PHh_MBDubseTxAaS0r7Bddal2wY-qY4oA,539
|
|
69
69
|
tests/test_task.py,sha256=BpODWsy6I2LAZ4VZ4SGa4R6rly1U10gz0JjIPoW6GrI,7389
|
|
70
|
-
ez_a_sync-0.22.
|
|
71
|
-
ez_a_sync-0.22.
|
|
72
|
-
ez_a_sync-0.22.
|
|
73
|
-
ez_a_sync-0.22.
|
|
74
|
-
ez_a_sync-0.22.
|
|
70
|
+
ez_a_sync-0.22.11.dist-info/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
|
|
71
|
+
ez_a_sync-0.22.11.dist-info/METADATA,sha256=Qb9f8lPcqRlKfyURgsvPMkY_h0Bl6TygBochOelE0bw,533
|
|
72
|
+
ez_a_sync-0.22.11.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
73
|
+
ez_a_sync-0.22.11.dist-info/top_level.txt,sha256=GVK_7kp7dgBLeHp84iIQdsJmiXnrXd-5sIf2x0Q-VKc,13
|
|
74
|
+
ez_a_sync-0.22.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|