method net.block
Asymmetric partition: messages from from to to are lost, the opposite direction still works.
Example:
use std.test { net }
test sim "one way block" seeds 1..=2 {
net.block(["a"], ["b"])
assert net.isBlocked("a", "b")
assert !net.isBlocked("b", "a")
}pub(api) static fn block(from: List<str>, to: List<str>, r#for: Dur = 0ms)Since. 1.0.0-beta
Parameters
Effects
none declared (pure unless the body says otherwise)
Defined in: std/test/test.oxl:166