@@ -0,0 +1,625 @@
+from gevent import monkey; monkey.patch_all()%0Aimport gevent%0A%0Afrom huey.contrib.mini import MiniHuey%0A%0A%0Ahuey = MiniHuey()%0A%0A# If we want to support scheduling tasks for execution in the future, or for%0A# periodic execution (e.g. cron), then we need to call %60huey.start()%60 which%0A# starts a scheduler thread.%0Ahuey.start()%0A%0A%0A@huey.task()%0Adef add(a, b):%0A    return a + b%0A%0Ares = add(1, 2)%0Aprint(res())  # Result is calculated in separate greenlet.%0A%0Aprint('Scheduling task for execution in 2 seconds.')%0Ares = add.schedule(args=(10, 20), delay=2)%0Aprint(res())%0A%0A# Stop the scheduler. Not strictly necessary, but a good idea.%0Ahuey.stop()%0A

Add example of using minihuey.