Skip to main content

fail_op

Function fail_op 

pub(super) fn fail_op<T, E: Clone + Into<Error> + StdError + 'static>(
    queued_tx: Option<Sender<Result<(), Error>>>,
    completion_tx: Sender<Result<T, Error>>,
    err: E,
)
Available on crate feature tokio only.
Expand description

Resolves an operation’s futures with an error. The connection remains intact. err is any error source convertible into Error. It is materialised separately for each channel because Error is not Clone.