Esc

close_exchange

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

Releases an exchange; unfinished directions are reset. Readers and writers must have returned first. Calling again on the cleared handle is safe.

Signature

close_exchange :: (exchange: *Http2_Exchange)
Example
exchange: Http2_Exchange;

close_exchange(*exchange);
close_exchange(*exchange); // safe again on the cleared handle
assert(exchange.state == null);

See also