loop_safe_stop

bapsf_motion.utils.loop_safe_stop(loop: AbstractEventLoop, max_wait: float | None = 6.0)

Safely cancel all tasks in the event loop loop and stop the loop once the tasks are done.

Parameters: