Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
print(Context)
await asyncio.sleep(0.1)
print(Context)
if __name__ == '__main__':
asyncio.run(main())
"""
from .base_context import BaseRuntimeContext
__all__ = ["Context"]
try:
from .async_context import AsyncRuntimeContext
Context = AsyncRuntimeContext() # type: BaseRuntimeContext
except ImportError:
from .thread_local_context import ThreadLocalRuntimeContext
Context = ThreadLocalRuntimeContext()