Commit 4ebadca
authored
docs(stack/gate): note
cancel safety is a relevant quality of `Future`s returned by `async`
functions. this affects whether a future is safe to use within a
`tokio::select!` block.
this function is used in some of these macro invocations, like the
`ConsecutiveFailures` circuit-breaker.
this function is cancel safe because it is strictly delegating down to
`tokio::sync::watch::Sender::closed()`, which is itself cancel safe:
<https://docs.rs/tokio/latest/tokio/sync/watch/struct.Sender.html#method.closed>.
Signed-off-by: katelyn martin <kate@buoyant.io>Tx::lost() cancel safety (#4482)1 parent 3aa8923 commit 4ebadca
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
0 commit comments