Faraday.Flushed_reason
type t =
| Shift
shift t
was called, normally indicating that bytes were written successfully.
| Drain
drain t
was called, normally indicating that the downstream consumer of t
's bytes stopped accepting new input.
| Nothing_pending
Passed to f
when flush_with_reason t f
is called when there is not any pending output, so t
is considered immediately flushed.
Indicates why a flush callback was called.