method net.partition
Cuts all links between the two groups in both directions, for for (0 = until heal()).
Example:
use std.test { net }
test sim "cut and heal" seeds 1..=2 {
net.partition(["api"], ["db"], for: 2s)
assert net.isBlocked("db", "api")
}pub(api) static fn partition(a: List<str>, b: 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:150