💾 Archived View for tris.fyi › pydoc › asyncio.runners captured on 2023-01-29 at 03:53:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

-=-=-=-=-=-=-

Back to module index

Go to module by name

asyncio

asyncio.runners

This module has no docstring.

Functions

run

run(main, *, debug=None)

  Execute the coroutine and return the result.

      This function runs the passed coroutine, taking care of
      managing the asyncio event loop and finalizing asynchronous
      generators.

      This function cannot be called when another asyncio event loop is
      running in the same thread.

      If debug is True, the event loop will be run in debug mode.

      This function always creates a new event loop and closes it at the end.
      It should be used as a main entry point for asyncio programs, and should
      ideally only be called once.

      Example:

          async def main():
              await asyncio.sleep(1)
              print('hello')

          asyncio.run(main())
    

Modules

coroutines

events

tasks