Esc

exchange_cancelled

procedureextensionexperimentalsince 0.36.1Source
  • macOS: exchange_cancelled works on macOS
  • Linux: exchange_cancelled works on Linux
  • Windows: exchange_cancelled works on Windows
  • Wasm: exchange_cancelled works on Wasm

Whether a reset or incomplete connection failure has terminated this exchange. Safe to poll from cooperative server work on the owning scheduler.

Signature

exchange_cancelled :: (exchange: *Http2_Exchange) -> bool
Example
exchange: Http2_Exchange;
assert(exchange_cancelled(*exchange)); // an exchange that is closed counts as cancelled

See also