rad  5.1.0
Functions | Variables
rad.core.run Namespace Reference

Functions

def run_with_cleanup (*futures, loop=None, cleanup_timeout=30.0)
 A blocking function that takes care of running one or more futures or , or coroutines until completion. More...
 

Variables

 LOGGER = logging.getLogger(__name__)
 

Function Documentation

◆ run_with_cleanup()

def rad.core.run.run_with_cleanup ( futures,
  loop = None,
  cleanup_timeout = 30.0 
)

A blocking function that takes care of running one or more futures or , or coroutines until completion.

Other tasks in the event loop will be automatically cancelled once the futures complete. They are given a cleanup_timeout second grace period to perform their cleanup.

Parameters
futures The futures that control how long the event loop will execute. loop Event loop to use. If none, the global event loop will be used. cleanup_timeout The amount of time given for cleanup activities after loop is shut down.

Post conditions:

  • All passed futures has been completed.
  • Other tasks in the event loop has been cancelled.

Examples

Variable Documentation

◆ LOGGER

rad.core.run.LOGGER = logging.getLogger(__name__)