Skip to content

Add interrupts escape hatch#746

Merged
hadley merged 2 commits into
mainfrom
esacpe-interrupts
Jun 18, 2025
Merged

Add interrupts escape hatch#746
hadley merged 2 commits into
mainfrom
esacpe-interrupts

Conversation

@hadley
Copy link
Copy Markdown
Member

@hadley hadley commented Jun 18, 2025

I can't see any way to test this, but I experimented interactively with this code:

library(httr2)
request_base <- request(example_url())
reqs <- rep(list(request_base |> req_url_path("/delay/0.1")), 100)
repeat(req_perform_parallel(reqs))

Fixes #720

I can't see any way to test this, but I experimented interactively with this code:

```R
library(httr2)
request_base <- request(example_url())
reqs <- rep(list(request_base |> req_url_path("/delay/0.1")), 100)
repeat(req_perform_parallel(reqs))
```

Fixes #1810
Copy link
Copy Markdown
Member

@shikokuchuo shikokuchuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my perspective.

Comment thread R/utils.R Outdated
Comment thread R/utils.R Outdated
Comment thread R/httr2-package.R Outdated
Co-authored-by: Charlie Gao <53399081+shikokuchuo@users.noreply.github.com>
@hadley
Copy link
Copy Markdown
Member Author

hadley commented Jun 18, 2025

Thanks for the review!

@hadley hadley merged commit e0c71f7 into main Jun 18, 2025
13 checks passed
@hadley hadley deleted the esacpe-interrupts branch June 18, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parallel interrupts problem

2 participants