OxL Справочник OxL
РусскийEnglish

method net.isBlocked

Whether messages from from to to are currently lost.

Example:

oxl✓ проверяется в 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

С версии. 1.0.0-beta

Параметры

ИмяТип
fromstr
tostr

Возвращает

bool

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/test/test.oxl:196

См. также