Skip to content

Commit

Permalink
chore(ServerApplication): correct documentation #4643
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Oct 15, 2024
1 parent afa38a3 commit f85e9db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Util/include/Poco/Util/ServerApplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,12 @@ class Util_API ServerApplication: public Application
/// An application can register a callback to be called at termination time.
/// An example of the termination callback registration at some point
/// during the ServerApplication initialization time:
///
/// static const std::string cbMsg = "Termination custom message"s;
///
/// auto tCB = [](const std::string& message)
/// {
/// std::cout << message << std::endl;
/// };
/// ServerApplication::registerTerminateCallback(tCB, cbMsg);
/// ServerApplication::registerTerminateCallback(tCB, "custom termination message"s);
{
public:
using TerminateCallback = std::function<void(const std::string&)>;
Expand Down Expand Up @@ -175,7 +174,8 @@ class Util_API ServerApplication: public Application
static void registerTerminateCallback(TerminateCallback tCB,
const std::string& message = _terminateMessage);
/// Registers a termination callback.
/// Used to notify all interested users about system shutdown.
/// Used to register a function to be executed when the system
/// shutdown starts.

protected:
int run();
Expand Down

0 comments on commit f85e9db

Please sign in to comment.