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

fn pon

on role where nothing can hop (before respond, over a stream): the step runs on the node that reached it (D-5110).

Example:

oxl✓ проверяется в CI
use std.saga

fn main() io {
  print("{saga.pon("gpu", 7)}")
}
Вывод
7
pub(api) fn pon<T>(role: str, v: T) -> T

С версии. 1.0.0-beta

Параметры

ИмяТип
rolestr
vT

Возвращает

T

Эффекты

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

Определено в: std/saga/saga.oxl:1253

См. также