Skip to content

Support asio::cancel_after #226

Open
@anarthal

Description

@anarthal

This is a very handy token, but it requires the initiation function object to have a bound executor. The following should work:

redis::connection conn (ctx);
co_await conn.async_exec(req, res, asio::cancel_after(10s));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions