boostorg / boostorg/cobalt

Suggestion: Health-check example

オープン
#2 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
347
フォーク
47
平均マージ
3日 8時間
マージ済み PR(30日)
1

説明

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});
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。