https://github.com/python/cpython/commit/27051b7ce151b15607cc63ad1c57c72b181cd1be
commit: 27051b7ce151b15607cc63ad1c57c72b181cd1be
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-05-31T12:18:57Z
summary:

[3.14] Clarify docs for scheduler.run(blocking=False) (GH-129575) (GH-150669)

(cherry picked from commit 2f8f569ba911ab3cff1356a15a3e688adc4ae917)

Co-authored-by: M. Greyson Christoforo <[email protected]>

files:
M Doc/library/sched.rst

diff --git a/Doc/library/sched.rst b/Doc/library/sched.rst
index 5560478ce15e28..302231d95f8979 100644
--- a/Doc/library/sched.rst
+++ b/Doc/library/sched.rst
@@ -119,9 +119,11 @@ Scheduler Objects
    function passed to the constructor) for the next event, then execute it and 
so
    on until there are no more scheduled events.
 
-   If *blocking* is false executes the scheduled events due to expire soonest
-   (if any) and then return the deadline of the next scheduled call in the
-   scheduler (if any).
+   If *blocking* is false, immediately executes all events in the queue which 
have
+   a time value less than or equal to the current *timefunc* value (if any) and
+   returns the difference between the current *timefunc* value and the time 
value
+   of the next scheduled event in the scheduler's event queue.  If the queue is
+   empty, returns ``None``.
 
    Either *action* or *delayfunc* can raise an exception.  In either case, the
    scheduler will maintain a consistent state and propagate the exception.  If 
an

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to