pub fn queue(
        &mut self,
        outpoint: transparent::OutPoint,
    ) -> impl Future<Output = Result<Response, BoxError>> {
        let mut receiver = self
            .0
            .entry(outpoint)
            .or_insert_with(|| {
                let (sender, _) = broadcast::channel(1);
                sender
            })
            .subscribe();

        async move {
            receiver
                .recv()
                .await
                .map(Response::Utxo)
                .map_err(BoxError::from)
        }
    }
/// Returns a future that will resolve to the `transparent::Output` pointed
/// to by the given `transparent::OutPoint` when it is available.
Returns a future that will resolve to the `transparent::Output` pointed
to by the given `transparent::OutPoint` when it is available.
Returns a future that will resolve to the ` transparent :: Output ` pointed to by the given ` transparent :: OutPoint ` when it is available .
pub fn queue(
        &mut self,
        outpoint: transparent::OutPoint,
    ) -> impl Future<Output = Result<Response, BoxError>> {
        let mut receiver = self
            .0
            .entry(outpoint)
            .or_insert_with(|| {
                let (sender, _) = broadcast::channel(1);
                sender
            })
            .subscribe();
        async move {
            receiver
                .recv()
                .await
                .map(Response::Utxo)
                .map_err(BoxError::from)
        }
    }
pub fn queue ( & mut self , outpoint : transparent :: OutPoint , ) -> impl Future < Output = Result < Response , BoxError > > { let mut receiver = self . 0 . entry ( outpoint ) . or_insert_with ( | | { let ( sender , _ ) = broadcast :: channel ( 1 ) ; sender } ) . subscribe ( ) ; async move { receiver . recv ( ) . await . map ( Response :: Utxo ) . map_err ( BoxError :: from ) } }
Returns a future that will resolve to the `transparent::Output` pointed
to by the given `transparent::OutPoint` when it is available.
Returns a future that will resolve to the ` transparent :: Output ` pointed to by the given ` transparent :: OutPoint ` when it is available .
&mut self
outpoint
transparent::OutPoint