pub async fn run_concurrently<HF, GF, HE, GE>(
http_future: HF,
grpc_future: GF,
) -> Result<()>Expand description
Run two independent servers/tasks concurrently.
This is useful for running a RustAPI HTTP server together with a Tonic gRPC server.
The function returns when one of the futures returns an error, or when both complete successfully.