4.86.2 - Make Async Request Body actually work
What's Changed
Make Async Request Body actually work by @0xTim in #3096
The existing implementation of adding an
AsyncSequence
toRequest.Body
had two issues:
- it didn’t ensure code was being called from the correct event loop which broke
Sendable
guarantees and was unsafe- it would hit a precondition failure in the implementation if backpressure was triggered because the initial state was not accounted for
This fixes that
Reviewers
Thanks to the reviewers for their help:
This patch was released by @0xTim
Full Changelog: 4.86.1...4.86.2