def Slot.read

bend-kit-cache@0.3.0.0 · cache.bend:71

import bend-kit-cache@0.3.0.0/cache.bend as Cache
import Base

71# The fresh entry at `now`, or None when the caller must fetch.
72def Slot.read(-V: Data, s: Slot<V>, +now: Nat) -> Maybe<&2, Entry<V>>:
73  Slot{n, f, m} = s
74  Slot.lookup(V, m, now)

Uses (5)

Used by (1)