pub fn new() -> (Self, MempoolNotificationListener) {
        let (notification_sender, notification_receiver) =
            mpsc::channel(MEMPOOL_NOTIFICATION_CHANNEL_SIZE);

        let mempool_notifier = MempoolNotifier {
            notification_sender,
        };
        let mempool_listener = MempoolNotificationListener::new(notification_receiver);
        (mempool_notifier, mempool_listener)
    }
/// Returns a new MempoolNotifier and MempoolNotificationListener (to be
/// used in conjuction with one another).
Returns a new MempoolNotifier and MempoolNotificationListener (to be
used in conjuction with one another).
Returns a new MempoolNotifier and MempoolNotificationListener ( to be used in conjuction with one another ) .
pub fn new() -> (Self, MempoolNotificationListener) {
        let (notification_sender, notification_receiver) =
            mpsc::channel(MEMPOOL_NOTIFICATION_CHANNEL_SIZE);
        let mempool_notifier = MempoolNotifier {
            notification_sender,
        };
        let mempool_listener = MempoolNotificationListener::new(notification_receiver);
        (mempool_notifier, mempool_listener)
    }
pub fn new ( ) -> ( Self , MempoolNotificationListener ) { let ( notification_sender , notification_receiver ) = mpsc :: channel ( MEMPOOL_NOTIFICATION_CHANNEL_SIZE ) ; let mempool_notifier = MempoolNotifier { notification_sender , } ; let mempool_listener = MempoolNotificationListener :: new ( notification_receiver ) ; ( mempool_notifier , mempool_listener ) }
Returns a new MempoolNotifier and MempoolNotificationListener (to be
used in conjuction with one another).
Returns a new MempoolNotifier and MempoolNotificationListener ( to be used in conjuction with one another ) .