pub async fn run_with_capacity<M, F>(
capacity: usize,
n: u16,
party_start: impl FnMut(u16, MpcParty<M, MockedDelivery<M>>) -> F,
) -> SimResult<F::Output>Available on crate features
sim and sim-async only.Expand description
Simulates execution of the protocol
Same as run 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.