Buckets:

download
raw
254 Bytes
import contextlib
import asyncio
def is_in_async_loop() -> bool:
"""
Returns True if the function is called in an async loop
"""
with contextlib.suppress(Exception):
return asyncio.get_event_loop().is_running()
return False

Xet Storage Details

Size:
254 Bytes
·
Xet hash:
0a80384f13e9950d363554f574aeb037c4cbd9dd1b786c4d6b5265f8c8d11041

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.