top

Package lazyslot implements a caching scheme for globally shared objects that take significant time to refresh.

The defining property of the implementation is that only one goroutine will block when refreshing such object, while all others will use a slightly stale cached copy.

Imports 2 package(s)

  1. golang.org/x/net/context
  2. github.com/luci/luci-go/common/clock

Test imports 2 package(s)

  1. github.com/luci/luci-go/common/clock/testclock
  2. github.com/smartystreets/goconvey/convey