Interface CancelationToken


@ThreadSafe public interface CancelationToken
Thread-safe cancelation signal for response stream producers.

Producers should check this token between expensive or blocking operations and stop producing when it becomes canceled. Soklet cancels the token when a streaming response can no longer continue, such as when the client disconnects, the server shuts down, the request HTTP version cannot support streaming, or a streaming timeout is reached.

Author:
Mark Allen