def both

bend-kit-webhooks@0.11.0.1 · webhooks.bend:223

import bend-kit-webhooks@0.11.0.1/webhooks.bend as Webhooks
import Base

223# A bad secret fails the check, even when another secret matches.
224def both(a: Result<&1, &1, Err, Bool>, b: Result<&1, &1, Err, Bool>) -> Result<&1, &1, Err, Bool>:
225  match a:
226    case Fail{e}:
227      Fail{e}
228    case Done{x}:
229      both.done(x, b)

Uses (4)

Used by (1)