boost::redis::basic_connection::async_run :: Boost.Redis

# boost::redis::basic_connection::async_run

(Deprecated) Starts the underlying connection operations.

## Synopsis

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

    template<class CompletionToken = asio::default_completion_token_t<executor_type>>
    auto
    async_run(
        config const& cfg,
        logger l,
        CompletionToken&& token = {});

## Description

This function accepts an extra logger parameter. The passed `logger::lvl` will be used, but `logger::fn` will be ignored. Instead, a function that logs to `stderr` using `config::prefix` will be used. This keeps backwards compatibility with previous versions. Any logger configured in the constructor will be overriden.

## Deprecated

The logger should be passed to the connection's constructor instead of using this function. Use the overload without a logger parameter, instead. This function is deprecated and will be removed in subsequent releases.

## Parameters

Name | Description
--- | ---
cfg | Configuration parameters.
l | Logger.
token | Completion token.

Created with MrDocs