OxL Reference

kw retry

Contextual keyword — chain suffixes (§8.4)

The list of words: §1.4

Syntax

ebnf
Suffix      = "within" Binary | "retry" Binary [ "on" Type ] [ "backoff" Binary ] ;

Grammar: App. A

Defined in

Examples

oxl
let page = Users.get(id)
  -> (Orders.recent(it.id), Recs.for(it.id))
  -> (orders, recs) => Page{ orders, recs }
  ~> Audit.log("page", id)
  !> Timeout => Page.empty()
  within PAGE_DEADLINE
  retry 2

let html = await page

— 8.4 Chains

oxl
sleep(BACKOFF)
after(RETRY_DELAY) { retry() }
every(SYNC_PERIOD) { sync() }
at(cron"0 9 * * MON-FRI".in(tz"Europe/Moscow")) { report() }

— 17.4 Timers and schedules

Related diagnostics

it-outside-chain, chained-comparison, attribute-not-applicable, cache-not-readonly, invalid-window, retry-not-idempotent, rpc-attr

See also