Пример #1
0
async def test_task(task=Task()):
    for i in range(0, 10):
        await asyncio.sleep(0.01)
        await task.update(i)
Пример #2
0
async def log_task(task=Task()):
    for i in range(0, 10):
        await task.log('i is now %d', i)