Skip to content

Commit 3924d80

Browse files
committed
update AsyncPeriodicExecutors docs
1 parent 7ece812 commit 3924d80

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pymongo/periodic_executor.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,16 @@ def __init__(
3636
target: Any,
3737
name: Optional[str] = None,
3838
):
39-
"""Run a target function periodically on a background thread.
39+
"""Run a target function periodically on a background task.
4040
4141
If the target's return value is false, the executor stops.
4242
4343
:param interval: Seconds between calls to `target`.
4444
:param min_interval: Minimum seconds between calls if `wake` is
4545
called very often.
4646
:param target: A function.
47-
:param name: A name to give the underlying thread.
47+
:param name: A name to give the underlying task.
4848
"""
49-
# threading.Event and its internal condition variable are expensive
50-
# in Python 2, see PYTHON-983. Use a boolean to know when to wake.
51-
# The executor's design is constrained by several Python issues, see
52-
# "periodic_executor.rst" in this repository.
5349
self._event = False
5450
self._interval = interval
5551
self._min_interval = min_interval

0 commit comments

Comments
 (0)