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:
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
Параметры
| Имя | Тип |
|---|---|
role | str |
v | T |
Возвращает
T
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/saga/saga.oxl:1253