mirror of
https://github.com/tower-rs/tower.git
synced 2025-09-28 05:20:57 +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.
450 B
450 B
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.