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)С версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
p | f64 |
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/test/test.oxl:113