Esc

exchange_cancel

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

Cancels the stream and wakes blocked operations. Does not release the handle; wait for its reader/writer fibers before close_exchange.

Signature

exchange_cancel :: (exchange: *Http2_Exchange)
Example
exchange: Http2_Exchange;
exchange_cancel(*exchange); // a handle with no stream: nothing to cancel
assert(exchange_cancelled(*exchange));

See also