flpit 0.4.2.dev12__tar.gz → 0.5.0__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.
- {flpit-0.4.2.dev12 → flpit-0.5.0}/PKG-INFO +1 -1
- {flpit-0.4.2.dev12 → flpit-0.5.0}/pyproject.toml +1 -1
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/asyncio_bridge.py +1 -1
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/task.py +0 -15
- {flpit-0.4.2.dev12 → flpit-0.5.0}/.gitignore +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/LICENSE +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/README.md +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flp/__init__.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/__init__.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/channels.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/concurrent.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/core/__init__.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/core/_grouping.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/core/_index.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/core/_join.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/core/_lookup.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/core/_zip.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/core/async_linq.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/core/comparers.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/core/linq.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/csv.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/flp.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/json/__init__.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/json/_core.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/json/_msgspec.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/json/_native.py +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/py.typed +0 -0
- {flpit-0.4.2.dev12 → flpit-0.5.0}/src/flpit/threading.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""asyncio libraries on the flpit runtime: a pool of standard asyncio event loops.
|
|
2
2
|
|
|
3
|
-
Provisional: the API of this module may change in 0.
|
|
3
|
+
Provisional: the API of this module may change in 0.6. Prefer a library's sync client where one
|
|
4
4
|
exists (``httpx.Client``, psycopg's ``ConnectionPool``): it is written for threads and can be shared.
|
|
5
5
|
|
|
6
6
|
asyncio libraries (httpx, asyncpg, redis.asyncio, aiohttp, ...) need two things: a running
|
|
@@ -256,21 +256,6 @@ class _TaskMeta(type):
|
|
|
256
256
|
_completed_task[0] = task
|
|
257
257
|
return task
|
|
258
258
|
|
|
259
|
-
@property
|
|
260
|
-
def asyncio_interop(cls: "_TaskMeta") -> bool:
|
|
261
|
-
"""Deprecated, always True: a Task can always be awaited inside asyncio coroutines."""
|
|
262
|
-
warnings.warn(_ASYNCIO_INTEROP_DEPRECATED, DeprecationWarning, stacklevel=2)
|
|
263
|
-
return True
|
|
264
|
-
|
|
265
|
-
@asyncio_interop.setter
|
|
266
|
-
def asyncio_interop(cls: "_TaskMeta", enabled: bool) -> None:
|
|
267
|
-
warnings.warn(_ASYNCIO_INTEROP_DEPRECATED + " Setting it has no effect.", DeprecationWarning, stacklevel=2)
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
_ASYNCIO_INTEROP_DEPRECATED: Final = (
|
|
271
|
-
"Task.asyncio_interop is deprecated and will be removed in 0.5: awaiting a Task inside "
|
|
272
|
-
"asyncio coroutines always works, at no measurable cost to flpit awaits."
|
|
273
|
-
)
|
|
274
259
|
|
|
275
260
|
|
|
276
261
|
@dataclass(frozen=True)
|
|
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
|