Add support for AbortSignal to ChunkWriter
What does this MR do and why?
This MR adds AbortSignal support for ChunkWriter. This change allows us to stop HTML streaming.
How to set up and validate locally
- Enable
rapid_diffsfeature flag - Open any merge request page with at least 10 files changed
- Open Changes tab and add
?rapid_diffs=trueto the URL, follow the new URL - Rapidly change your view settings: enable whitespace, switch to parallel view
- Observe that HTML stream is cancelled using DevTools performance benchmark