def begin.joined

bend-kit-gateway@0.3.0.0 · gateway.bend:97

import bend-kit-gateway@0.3.0.0/gateway.bend as Gateway
import Base
import bend-kit-resources@0.1.0.0/resources.bend as Res
import bend-kit-cache@0.3.0.0/cache.bend as C

97def begin.joined(j: Res.Combine, pool: Res.Pool, +cache: C.Cache<String>, +key: String, +now: Nat) -> Begin:
98  match j:
99    case Res.Joined{held}:
100      begin.read(C.Cache.read(~String, cache, key, now), pool, held, cache, key, now)
101    case Res.Apart{held, one}:
102      begin.refund(Res.release(pool, one), held, cache)

Uses (10)

Used by (1)