(client)
Main routine
Main routine
Main routine
async def main(client):
    '''
    Main routine
    '''
    ids = get_teams()
    # chunks = [ids[i:i+NUM_TASKS] for i in range(0, len(ids), NUM_TASKS)]
    chunks = [ids[i::NUM_TASKS] for i in range(NUM_TASKS)]
    workers = [asyncio.ensure_future(work(client, chunk)) for chunk in chunks]
    await asyncio.gather(*workers)
async def main ( client ) : ids = get_teams ( ) # chunks = [ids[i:i+NUM_TASKS] for i in range(0, len(ids), NUM_TASKS)] chunks = [ ids [ i : : NUM_TASKS ] for i in range ( NUM_TASKS ) ] workers = [ asyncio . ensure_future ( work ( client , chunk ) ) for chunk in chunks ] await asyncio . gather ( * workers )