From 4b98fb1ef7db49c05f9372d4f6878d214461381e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Sun, 4 Sep 2022 23:00:45 +0300 Subject: Fixed references to run_until_stopped() --- docs/userguide.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/userguide.rst b/docs/userguide.rst index f9f1b50..fd88d1c 100644 --- a/docs/userguide.rst +++ b/docs/userguide.rst @@ -83,11 +83,11 @@ Running the scheduler ===================== The scheduler can run either in the foreground, blocking on a call to -:meth:`~apscheduler.schedulers.sync.Scheduler.run_until_complete`, or in the background +:meth:`~apscheduler.schedulers.sync.Scheduler.run_until_stopped`, or in the background where it does its work while letting the rest of the program run. If the only intent of your program is to run scheduled tasks, then you should start the -scheduler with :meth:`~apscheduler.schedulers.sync.Scheduler.run_until_complete`. But if +scheduler with :meth:`~apscheduler.schedulers.sync.Scheduler.run_until_stopped`. But if you need to do other things too, then you should call :meth:`~apscheduler.schedulers.sync.Scheduler.start_in_background` before running the rest of the program. -- cgit v1.2.1