Function poll_dispatch_then
pub(crate) fn poll_dispatch_then<T>(
dispatch: &mut DispatchState,
rx: &mut Receiver<Result<T, Error>>,
cx: &mut Context<'_>,
) -> Poll<Result<T, Error>>Available on crate feature
tokio only.Expand description
Drives dispatch then polls rx, short-circuiting on a dispatch error.
This is the standard body of every lazy-future poll implementation. It
sends the command through a reserved channel slot and then waits for the
oneshot reply.