Function run_with_capacity_and_setup

Source
pub async fn run_with_capacity_and_setup<S, M, F>(
    capacity: usize,
    setups: impl IntoIterator<Item = S>,
    party_start: impl FnMut(u16, MpcParty<M, MockedDelivery<M>>, S) -> F,
) -> SimResult<F::Output>
where M: Clone + Send + Unpin + 'static, F: Future,
Available on crate features sim and sim-async only.
Expand description

Simulates execution of the protocol

Same as run_with_setup but also takes a capacity of internal buffer to be used within simulated network. Size of internal buffer should fit total amount of the messages sent by all participants during the whole protocol execution.