Skip to content

Add return_exceptions to asyncio.gather wrapper #1286

@ogamibird

Description

@ogamibird
  • I have marked all applicable categories:
    • new feature request
  • I have visited the [source website], and in particular
    read the [known issues]
  • I have searched through the [issue tracker] for duplicates
  • I have mentioned version numbers, operating system and
    environment, where applicable:

The function gather of asyncio has a parameter "return_exceptions" with which exceptions occurring in the tasks are packed into the result set instead of breaking the loop. The wrapper method of tqdm does not have this parameter. It would be great if this could be added so that not all exceptions have to be wrapped in the task.

from tqdm.asyncio import tqdm
tqdm.gather(*tasks, return_exceptions=True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions