fn pfinish
The pipeline (or its tail) is over: closes the journal entry.
Example:
fn slow(n: i32) -> i32 time, io {
sleep(100ms)
n
}
pipeline job(n: i32) -> i32 {
respond it
-> slow durable
}
fn main() io, net, time, db {
let _ = job(1)
sleep(600ms)
print("{std.saga.list(.Active).len()}")
}Вывод
0
pub(api) fn pfinish() net, db, timeС версии. 1.0.0-beta
Эффекты
net, db, time
Определено в: std/saga/saga.oxl:1435