Function removeTopic

Synopsis

#include <lib/inc/drogon/PubSubService.h>

void removeTopic(const std::string &topicName)

Description

Remove a topic.

Source

Lines 237-241 in lib/inc/drogon/PubSubService.h.

void removeTopic(const std::string &topicName)
{
    std::unique_lock<SharedMutex> lock(mutex_);
    topicMap_.erase(topicName);
}





Add Discussion as Guest

Log in to DocsForge