You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: