method net.isBlocked
Whether messages from from to to are currently lost.
Example:
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
Параметры
| Имя | Тип |
|---|---|
from | str |
to | str |
Возвращает
bool
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/test/test.oxl:196