Description
Detects whether Python code is running under an async library such as asyncio, Trio, or Curio. It helps libraries adapt behavior without forcing applications to pass the async backend explicitly.
Developers use it as a small compatibility layer in async code. Detection is a helper, not a substitute for testing each supported backend and cancellation behavior.