Skip to content

How to receive messages multithreaded? #35

@autoantwort

Description

@autoantwort

In the only example how to receive messages this is done like this:

for (;;) {
// Receive an Appplication Message from the subscribed Topic(s).
auto&& [ec, topic, payload, publish_props] = co_await client.async_receive(use_nothrow_awaitable);

Which means only a single thread is used to process incoming messages. It is possible to use multiple threads to process subscribed topics?

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