tower/tower-spawn-ready
Jon Gjengset 395889c763
Make Ready only take Service by reference (#340)
Rather than consuming `self` and returning `(Self, _)`. This did mean
that a few crates that depended on `Ready` to own the `Service` and
provide it once it was ready had to change to call `poll_ready`
directly. Which in turn meant adding in some PhantomData<Request> so
that the impl blocks wouldn't be under-constrainted. Take, for example:

```
impl<K, S: Service<Req>, Req> Future for UnreadyService<K, S>
```

would fail to compile with

```
error[E0207]: the type parameter `Req` is not constrained by the impl trait, self type, or predicates
```
2019-09-11 15:49:51 -04:00
..
src Make Ready only take Service by reference (#340) 2019-09-11 15:49:51 -04:00
tests spawn-ready: fix tests after removal of E (#337) 2019-09-11 11:09:17 -04:00
CHANGELOG.md Update tower-spawn-ready to std::future (#332) 2019-09-10 17:06:34 -04:00
Cargo.toml Make Ready only take Service by reference (#340) 2019-09-11 15:49:51 -04:00
LICENSE spawn-ready: Drives a service's readiness on an executor (#283) 2019-05-29 09:57:46 -07:00
README.md spawn-ready: Drives a service's readiness on an executor (#283) 2019-05-29 09:57:46 -07:00

README.md

Tower Spawn Ready

Spawn Ready ensures that its inner service is driven to readiness on an executor. Useful with pooling layers that may poll their inner service infrequently.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tower by you, shall be licensed as MIT, without any additional terms or conditions.