OxL Reference

fn pfinish

The pipeline (or its tail) is over: closes the journal entry.

Example:

oxl✓ checked in CI
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()}")
}
Output
0
pub(api) fn pfinish() net, db, time

Since. 1.0.0-beta

Effects

net, db, time

Defined in: std/saga/saga.oxl:1435

See also