(
client: &ApiClient,
)
| 425 | } |
| 426 | |
| 427 | fn incoming( |
| 428 | client: &ApiClient, |
| 429 | ) -> impl Stream<Item = Result<http::Response<hyper::body::Incoming>, BoxError>> + Send + '_ { |
| 430 | async_stream::stream! { |
| 431 | loop { |
| 432 | trace!("Waiting for next event (incoming loop)"); |
| 433 | let req = NextEventRequest.into_req().expect("Unable to construct request"); |
| 434 | let res = client.call(req).await; |
| 435 | yield res; |
| 436 | } |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | /// Creates a future that polls the `/next` endpoint. |
| 441 | #[cfg(feature = "concurrency-tokio")] |
no outgoing calls
no test coverage detected