cobalt icon indicating copy to clipboard operation
cobalt copied to clipboard

Suggestion: Health-check example

Open mzimbres opened this issue 2 years ago • 1 comments

Async could provide a health check as an example since it is simple enough to implement and useful in general. Constraints

  • Ping the server periodically (can be a http endpoint).
  • Use only one timer.
  • The timer should not be cancelled.
  • On expiration the timer should exit with success.

The interface could look like

co_await health_check(connection, std::chrono::seconds{1});

mzimbres avatar Mar 01 '23 07:03 mzimbres

I am not sure I get what this supposed to do.

klemens-morgenstern avatar Mar 19 '23 12:03 klemens-morgenstern