Files
winf-photobooth/support/testing/tests/package/sample_python_apscheduler.py
Michael b8783708ae Initial Commit
- initial default booting image
2026-11-06 20:45:42 +01:00

16 lines
300 B
Python

from queue import Queue
from apscheduler.schedulers.background import BackgroundScheduler
queue = Queue()
def work():
queue.put("Ping!")
scheduler = BackgroundScheduler()
scheduler.add_job(work, "interval", seconds=1)
scheduler.start()
result = queue.get(timeout=3)
assert result == "Ping!"