ez-a-sync 0.22.10__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 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(f'{self} processing {fn}{args}{kwargs}')
124
+ self.logger.debug(msg, self, fn)
119
125
 
120
126
  # Process
121
127
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ez-a-sync
3
- Version: 0.22.10
3
+ Version: 0.22.11
4
4
  Summary: A library that makes it easy to define objects that can be used for both sync and async use cases.
5
5
  Home-page: https://github.com/BobTheBuidler/a-sync
6
6
  Author: BobTheBuidler
@@ -4,7 +4,7 @@ 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=cAlmCeKAw7dIOxeZLozWg69aWyyOvyXmYkraQyK-qDE,12984
7
+ a_sync/executor.py,sha256=TksELrnod_rLf8kvtb3KWLt6Wp3dXgAnD-kE_LCvOrE,13163
8
8
  a_sync/future.py,sha256=zQy3Gv1UvX399Yx5-W-ygxYZSS_C3aEhQlEz8gyoB90,26093
9
9
  a_sync/iter.py,sha256=riMXy2RSxmOtgv-L521YSWSTeZ8QXWhc8irU6mjEgkk,20804
10
10
  a_sync/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -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.10.dist-info/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
71
- ez_a_sync-0.22.10.dist-info/METADATA,sha256=NUBYU5OALF6SC0HnFk3WkJK-npwzWt0Q2xG2OQyPoAY,533
72
- ez_a_sync-0.22.10.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
73
- ez_a_sync-0.22.10.dist-info/top_level.txt,sha256=GVK_7kp7dgBLeHp84iIQdsJmiXnrXd-5sIf2x0Q-VKc,13
74
- ez_a_sync-0.22.10.dist-info/RECORD,,
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,,