mirror of
https://github.com/tower-rs/tower.git
synced 2026-03-01 03:09:34 +00:00
Some layers cannot guarantee that they will poll inner services in a timely fashion. For instance, the balancer polls its inner services to check for readiness, but it does so randomly. If its inner service must be polled several times to become ready, e.g., because it's driving the initiation of a TLS connection, then the balancer may not drive the handshake to completion. The `SpawnReady` layer ensures that its inner service is driven to readiness by spawning a background task.
14 lines
450 B
Markdown
14 lines
450 B
Markdown
# 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](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.
|