python-trio


1
2
3
4
5
6
async def (interval, func, *args, task_status=trio.TASK_STATUS_IGNORED):
with trio.open_cancel_scope() as scope:
task_status.started(scope)
while True:
await trio.sleep(interval)
func(*args)