The sched Module
The sched
module implements an event-scheduler, letting you easily deal, along a single thread of execution, with events that may be scheduled in either a “real” or a “simulated” time-scale. sched
supplies a scheduler
class.
scheduler |
An instance A |
cancel |
Removes an event from |
empty |
Returns |
enterabs |
Schedules a future event (a callback to |
Get Python in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.