Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flight][Static] Implement halting a prerender behind enableHalt #30705

Merged
merged 1 commit into from
Aug 16, 2024

Commits on Aug 16, 2024

  1. [Flight][Static] Implement halting a prerender behind enableHalt

    enableHalt turns on a mode for flight prerenders where aborts are treated like infinitely stalled outcomes while still completing the prerender. For regular tasks we simply serialize the slot as a promise that never settles. For ReadableStream, Blob, and Async Iterators we just never advance the serialization so they remain unfinished when consumed on the client.
    
    When enableHalt is turned on aborts of prerenders will halt rather than error. The abort reason is forwarded to the upstream produces of the aforementioned async iterators, blobs, and ReadableStreams. In the future if we expose a signal that you can consume from within a render to cancel additional work the abort reason will also be forwarded there
    gnoff committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    29572d9 View commit details
    Browse the repository at this point in the history