OxL Reference

method net.isBlocked

Whether messages from from to to are currently lost.

Example:

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

test sim "blocked links" seeds 1..=2 {
  assert !net.isBlocked("a", "b")
  net.block(["a"], ["b"])
  assert net.isBlocked("a", "b")
}
pub(api) static fn isBlocked(from: str, to: str) -> bool

Since. 1.0.0-beta

Parameters

NameType
fromstr
tostr

Returns

bool

Effects

none declared (pure unless the body says otherwise)

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

See also