r-lib / httr2

Make HTTP requests and process their responses. A modern reimagining of httr.
https://httr2.r-lib.org
Other
237 stars 59 forks source link

Use event-driven async for `req_perform_promise()` #579

Closed shikokuchuo closed 1 week ago

shikokuchuo commented 2 weeks ago

later::later_fd() provides the ability to wait efficiently on curl socket activity.

We update req_perform_promise() to use the new capability rather than poll for updates at 0.1 sec intervals.

A PR will be provided.

There will be separate PRs here and/or at elmer for streaming async.