Reference

boost::redis::connection::async_run

Synopsis

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

Description

This function accepts an extra logger parameter. The passed logger will be used by the connection, overwriting any logger passed to the connection's constructor.

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