pub fn connect_with_capacity<T, P>(
    machine: T, capacity: usize,
) -> (Arc<T>, Sender<<<P as MachineImpl>::Adapter as MachineBuilder>::InstructionSet>)
where
    T: 'static + Machine<P> + Machine<<<P as MachineImpl>::Adapter as MachineBuilder>::InstructionSet>,
    P: MachineImpl,
    <P as MachineImpl>::Adapter: MachineBuilder,
{
    let (machine, mut sender, collective_adapter) = <<P as MachineImpl>::Adapter as MachineBuilder>::build_raw(machine, capacity);
    bind_and_assign(collective_adapter, &mut sender);
    (machine, sender)
}
/// The connect_with_capacity method creates a machine with a bounded queue of the specified size.
The connect_with_capacity method creates a machine with a bounded queue of the specified size.
The connect_with_capacity method creates a machine with a bounded queue of the specified size .
pub fn connect_with_capacity<T, P>(
    machine: T, capacity: usize,
) -> (Arc<T>, Sender<<<P as MachineImpl>::Adapter as MachineBuilder>::InstructionSet>)
where
    T: 'static + Machine<P> + Machine<<<P as MachineImpl>::Adapter as MachineBuilder>::InstructionSet>,
    P: MachineImpl,
    <P as MachineImpl>::Adapter: MachineBuilder,
{
    let (machine, mut sender, collective_adapter) = <<P as MachineImpl>::Adapter as MachineBuilder>::build_raw(machine, capacity);
    bind_and_assign(collective_adapter, &mut sender);
    (machine, sender)
}
pub fn connect_with_capacity < T , P > ( machine : T , capacity : usize , ) -> ( Arc < T > , Sender < < < P as MachineImpl > :: Adapter as MachineBuilder > :: InstructionSet > ) where T : ' static + Machine < P > + Machine < < < P as MachineImpl > :: Adapter as MachineBuilder > :: InstructionSet > , P : MachineImpl , < P as MachineImpl > :: Adapter : MachineBuilder , { let ( machine , mut sender , collective_adapter ) = < < P as MachineImpl > :: Adapter as MachineBuilder > :: build_raw ( machine , capacity ) ; bind_and_assign ( collective_adapter , & mut sender ) ; ( machine , sender ) }
The connect_with_capacity method creates a machine with a bounded queue of the specified size.
The connect_with_capacity method creates a machine with a bounded queue of the specified size .
machine
T
capacity
usize