diff options
| author | 2020-02-15 21:34:38 -0800 | |
|---|---|---|
| committer | 2020-02-15 21:34:38 -0800 | |
| commit | f09d6b0646edb62806b60b145986b7cc680fd77c (patch) | |
| tree | 7188f22d631d17ce7be29c1c819ad934c8b3b71d /tests/test_base.py | |
| parent | Moderation: avoid prematurely cancelling deactivation task (diff) | |
Scheduler: make _scheduled_tasks private
Main concern is someone trying to cancel a task directly. The workaround
for the race condition relies on the task only being cancelled via
Scheduler.cancel_task(), particularly because it removes the task from
the dictionary. The done callback will not remove from the dictionary
if it sees the task has already been cancelled. So it's a bad idea to
cancel tasks directly...
Diffstat (limited to 'tests/test_base.py')
0 files changed, 0 insertions, 0 deletions