Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /trisongz_lazyops /src /lzl /pool /utils.py
| """Miscellaneous helper utilities used by :mod:`lzl.pool`.""" | |
| import asyncio | |
| import contextlib | |
| def is_in_async_loop() -> bool: | |
| """Return ``True`` when called from within a running event loop.""" | |
| with contextlib.suppress(Exception): | |
| return asyncio.get_event_loop().is_running() | |
| return False | |
Xet Storage Details
- Size:
- 314 Bytes
- Xet hash:
- c35fc78b888dc2179ad68ab6b1cdfa38cd51e3ba36734d1205e7db81bcc9d968
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.