morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::offline::ReconnectCoordinatorConfig Struct Reference

Tuning parameters for ReconnectCoordinator. More...

#include <reconnect_coordinator.hpp>

Public Attributes

int maxAttempts = 10
 Max reconnect attempts per onOnline() call before giving up.
std::chrono::milliseconds retryDelay = std::chrono::seconds{2}
 Delay between failed reconnect attempts.

Detailed Description

Tuning parameters for ReconnectCoordinator.

Declared outside the class so its default member initialisers are fully parsed before any constructor default argument names Config{}. (A nested incomplete type breaks constructor default arguments on clang/GCC — see the same note on NetworkMonitorConfig.)

Definition at line 61 of file reconnect_coordinator.hpp.

Member Data Documentation

◆ maxAttempts

int morph::offline::ReconnectCoordinatorConfig::maxAttempts = 10

Max reconnect attempts per onOnline() call before giving up.

Definition at line 63 of file reconnect_coordinator.hpp.

◆ retryDelay

std::chrono::milliseconds morph::offline::ReconnectCoordinatorConfig::retryDelay = std::chrono::seconds{2}

Delay between failed reconnect attempts.

Definition at line 66 of file reconnect_coordinator.hpp.


The documentation for this struct was generated from the following file: