method net.drop
Probability (0..1) that a message is lost.
Example:
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
| Name | Type |
|---|---|
p | f64 |
Effects
none declared (pure unless the body says otherwise)
Defined in: std/test/test.oxl:113