Skip to content

feature request: req_perform_promise() #501

Description

@gergness

It's nice that parallelization is possible through req_perform_multi() but I wish there was a way that httr2 wouldn't have to hold onto control while the requests are being made. (For example, a shiny dashboard where each tile could load independently even if each depended on a httr2 request).

Playing around a bit, I was pleasantly surprised how easy it was to extend the internal Performance class to get a promise, based on the way the promises package wraps future objects (with a later loop), but that class isn't exported. Would you consider a PR that adds this? Or if not, exporting the Performance object?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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