Expand description
Cooperative cancellation shared by buffered calls and streams.
A CancelToken is checked between attempts, while sleeping between retries,
and before every body read. It cannot interrupt a blocking socket call that is
already waiting for response headers; that wait is bounded by the response timeout.
Structs§
- Cancel
Token - Shared cancel flag. Clones observe the same flag.
Functions§
- is_
cancelled_ io - True when
errcame from a cancelled read on a stream returned by this crate.