Timed events documentation¶
Timed events are the standard way to schedule events for later in poezio.
Once created, they must be added to the list of checked events with Core.add_timed_event() (within poezio) or with PluginAPI.add_timed_event() (within a plugin).
- class timed_events.TimedEvent(date, callback, *args)¶
An event with a callback that is called when the specified time is passed.
The callback and its arguments should be passed as the lasts arguments.
- class timed_events.DelayedEvent(delay, callback, *args)¶
A TimedEvent, but with the date calculated from now + a delay in seconds. Use it if you want an event to happen in, e.g. 6 seconds.