boost::redis::basic_connection::cancel :: Boost.Redis

# boost::redis::basic_connection::cancel

Cancel operations.

## Synopsis

Declared in `<boost/redis/connection.hpp>`

    void
    cancel(operation op = operation::all);

## Description

- `operation::exec`: cancels operations started with `async_exec`. Affects only requests that haven't been written yet.

- `operation::run`: cancels the `async_run` operation.

- `operation::receive`: cancels any ongoing calls to `async_receive`.

- `operation::all`: cancels all operations listed above.

## Parameters

Name | Description
--- | ---
op | The operation to be cancelled.

Created with MrDocs