Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Have the option to run a function every time in the event loop. Might be useful if you have 20 requests and you only need 4 of them, and whatever other ones come (of the 16 left) in while getting those 4 is nice but not needed. This would allow you get the required stuff while skipping the unnecessary things that are taking too long to execute.
Comment | File | Size | Author |
---|---|---|---|
#2 | httprl-1580166-1-allow-altering-of-all-streams.patch | 6.68 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedI think a better way to accomplish this goal is to have a function that can run at the end of httprl_post_processing() that can alter the $responses and $streams variables in httprl_send_request().
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedTest code for this