Suggestion: Health-check example
Offen
- Vorherrschende Sprache
- C++
- Sterne
- 347
- Forks
- 47
- Ø Merge
- 3 T. 8 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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
```cpp
co_await health_check(connection, std::chrono::seconds{1});
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.