timer2

timer2 - Scheduler for Python functions.

class timer2.Entry(fun, args, kwargs)
cancel()
class timer2.Schedule(max_interval=2)

ETA scheduler.

clear()
empty()

Is the schedule empty?

enter(item, eta=None, priority=0)

Enter item into the scheduler.

Parameters:
  • item – Item to enter.
  • eta – Scheduled time as a datetime.datetime object.
  • priority – Unused.
  • callback – Callback to call when the item is scheduled. This callback takes no arguments.
info()
queue
exception timer2.TimedFunctionFailed
class timer2.Timer(schedule=None)
class Entry(fun, args, kwargs)
cancel()
Timer.apply_after(msecs, fun, args=(), kwargs={}, priority=0)
Timer.apply_at(eta, fun, args=(), kwargs={}, priority=0)
Timer.apply_interval(msecs, fun, args=(), kwargs={}, priority=0)
Timer.cancel(tref)
Timer.clear()
Timer.enter(entry, eta, priority=None)
Timer.enter_after(msecs, entry, priority=0)
Timer.exit_after(msecs, priority=10)
Timer.run()
Timer.stop()
Timer.tick()

Previous topic

API Reference

Next topic

Change history

This Page