OxL Reference

method net.drop

Probability (0..1) that a message is lost.

Example:

oxl✓ checked in CI
use std.test { net }

test sim "lossy network" seeds 1..=2 {
  net.drop(0.1)
}
pub(api) static fn drop(p: f64)

Since. 1.0.0-beta

Parameters

NameType
pf64

Effects

none declared (pure unless the body says otherwise)

Defined in: std/test/test.oxl:113

See also