xontrib-schedule defines the schedule
builtin, which is strongly based on schedule with some
additions for non-periodic tasks.
To install use pip:
xpip install xontrib-schedule # or from git: xpip install git+https://github.com/AstraLuma/xontrib-schedule
# and load:
xontrib load schedule
schedule.when(<time>).do()
performs a task at some absolute time in the future.
schedule.delay(<time>).do()
performs a task after a delay.
schedule.delay(5).do(lambda: print('hello!'))
# wait 5 sec
hello!
Fork, submit a pull request, and we'll have a discussion. Keep to PEP8.
TBD
This package was created with cookiecutter and the xontrib template.