Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Can't set max_workers when using async #55

@jameskhedley

Description

@jameskhedley

Hi, I'd love to bump the number of workers I use when iterating documents using async requests.

However I can't see a way of passing this in. Am I missing something, or would you like a patch that lets you pass it via kwargs? Happy to provide.

See line 47 of resource.py. It could be made:

self._session = FuturesSession(kwargs.get('max_workers',2))

Cheers,
James

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