pub fn spawn(
        chain_a: Box<dyn ChainHandle>,
        chain_b: Box<dyn ChainHandle>,
    ) -> Result<Self, BoxError> {
        let chains = ChainHandlePair {
            a: chain_a,
            b: chain_b,
        };

        Ok(Self {
            chains,
            workers: HashMap::new(),
        })
    }
/// Spawn a supervisor which listens for events on the two given chains.
Spawn a supervisor which listens for events on the two given chains.
Spawn a supervisor which listens for events on the two given chains .
pub fn spawn(
        chain_a: Box<dyn ChainHandle>,
        chain_b: Box<dyn ChainHandle>,
    ) -> Result<Self, BoxError> {
        let chains = ChainHandlePair {
            a: chain_a,
            b: chain_b,
        };
        Ok(Self {
            chains,
            workers: HashMap::new(),
        })
    }
pub fn spawn ( chain_a : Box < dyn ChainHandle > , chain_b : Box < dyn ChainHandle > , ) -> Result < Self , BoxError > { let chains = ChainHandlePair { a : chain_a , b : chain_b , } ; Ok ( Self { chains , workers : HashMap :: new ( ) , } ) }
Spawn a supervisor which listens for events on the two given chains.
Spawn a supervisor which listens for events on the two given chains .
chain_a
Box<dyn ChainHandle>
chain_b
Box<dyn ChainHandle>
chain_a
Box<dyn ChainHandle>
chain_b
Box<dyn ChainHandle>