Try<F, O> static method

Conveyor<F, O> Try<F, O>(
  1. Conveyor<F, O> p()
)

Implementation

static Conveyor<F, O> Try<F, O>(Conveyor<F, O> p()) {
  try {
    return p();
  } catch (err) {
    return halt(err);
  }
}