async def test_task(task=Task()): for i in range(0, 10): await asyncio.sleep(0.01) await task.update(i)
async def log_task(task=Task()): for i in range(0, 10): await task.log('i is now %d', i)