def give

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

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

49# Gives one lent unit back to the pool. Unheld means that no unit was lent.
50def give(pool: Res.Pool, held: Res.Grant, cache: C.Cache<String>) -> Finish:
51  give.split(Res.split(held, 1n), pool, cache)

Uses (7)

Used by (2)