File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -36,20 +36,16 @@ def __init__(
36
36
target : Any ,
37
37
name : Optional [str ] = None ,
38
38
):
39
- """Run a target function periodically on a background thread .
39
+ """Run a target function periodically on a background task .
40
40
41
41
If the target's return value is false, the executor stops.
42
42
43
43
:param interval: Seconds between calls to `target`.
44
44
:param min_interval: Minimum seconds between calls if `wake` is
45
45
called very often.
46
46
:param target: A function.
47
- :param name: A name to give the underlying thread .
47
+ :param name: A name to give the underlying task .
48
48
"""
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.
53
49
self ._event = False
54
50
self ._interval = interval
55
51
self ._min_interval = min_interval
You can’t perform that action at this time.
0 commit comments