def Caps.or

bend-osdev-caps@0.1.0.0 · caps.bend:551

import bend-osdev-caps@0.1.0.0/caps.bend as Caps
import Base

551# the credentials after a call: the new ones, or c if it failed
552def Caps.or(r: Result<&2, &2, CapsError, CapCred>, c: CapCred) -> CapCred:
553  match r:
554    case Done{x}:
555      x
556    case Fail{e}:
557      c

Uses (3)

Used by (30)