| 5352 | inline bool Server::is_running() const { return is_running_; } |
| 5353 | |
| 5354 | inline void Server::wait_until_ready() const { |
| 5355 | while (!is_running() && !done_) { |
| 5356 | std::this_thread::sleep_for(std::chrono::milliseconds{1}); |
| 5357 | } |
| 5358 | } |
| 5359 | |
| 5360 | inline void Server::stop() { |
| 5361 | if (is_running_) { |