-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
There should be an easier way to schedule callbacks for future execution. In javascript the setInterval and setTimeout functions return an ID that can be used to cancel pending events. There's also just a simple function for scheduling events. This would be much more referred than needing to directly use the python threading.Timer class.
A few methods that should be provided
After(timeout, callback) => eventId
Call the callback after timeout seconds
Every(timeout, callback) => eventId
Same as after, except another call is scheduled when the callback is fired
Cancel(eventId)
Used to stop a pending event.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels