boostorg / boostorg/cobalt

Suggestion: Health-check example

Abierto
#2 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C++
Estrellas
347
Forks
47
Merge medio
3 d 8 h
PR fusionados (30 d)
1

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.