| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2020-06-24 | Scheduler: remove duplicate dict delete | -1/+0 | ||
| The task is already popped from the dict, so there is no need to delete it afterwards. | ||||
| 2020-06-23 | Scheduler: close coroutine if task ID already exists | -1/+7 | ||
| This prevents unawaited coroutine warnings. | ||||
| 2020-06-20 | Update InfractionScheduler's scheduler to the new API | -17/+12 | ||
| 2020-06-20 | Update HelpChannels's scheduler to the new API | -50/+20 | ||
| 2020-06-20 | Update Silence's scheduler to the new API | -26/+6 | ||
| 2020-06-20 | Update Reminders's scheduler to the new API | -14/+15 | ||
| 2020-06-20 | Update Filtering's scheduler to the new API | -10/+6 | ||
| 2020-06-20 | Scheduler: add a method to schedule at a specific datetime | -0/+13 | ||
| 2020-06-20 | Scheduler: add a method to schedule with a delay | -0/+19 | ||
| 2020-06-20 | Scheduler: rename "task" param to "coroutine" | -3/+3 | ||
| Naming it "task" is inaccurate because `create_task` accepts a coroutine rather than a Task. What it does is wrap the coroutine in a Task. | ||||
| 2020-06-20 | Scheduler: drop _task suffix from method names | -3/+3 | ||
| It's redundant. After all, this scheduler cannot schedule anything else. | ||||
| 2020-06-20 | Scheduler: remove ignore_missing param | -10/+5 | ||
| The ability to use the `in` operator makes this obsolete. Callers can check themselves if a task exists before they try to cancel it. | ||||
| 2020-06-19 | Scheduler: use pop instead of get when cancelling | -7/+7 | ||
| 2020-06-19 | Scheduler: add support for in operator | -0/+4 | ||
| 2020-06-19 | Scheduler: name tasks | -1/+1 | ||
| Makes them easier to identify when debugging. | ||||
| 2020-06-19 | Scheduler: directly take the awaitable to schedule | -23/+4 | ||
| This is a major change which simplifies the interface. It removes the need to implement an abstract method, which means the class can now be instantiated rather than subclassed. | ||||
| 2020-06-19 | Scheduler: use separate logger for each instance | -24/+17 | ||
| Each instance now requires a name to be specified, which will be used as the suffix of the logger's name. This removes the need to manually prepend every log message with the name. | ||||