RubyGems Navigation menu

lazy_data 0.1.0

LazyData provides data types featuring thread-safe lazy computation. These objects are constructed with a block that can be called to compute the final value, but it is not actually called until the value is requested. Once requested, the computation takes place only once, in the first thread that requested the value. Future requests will return a cached value. Furthermore, any other threads that request the value during the initial computation will block until the first thread has completed the computation. This implementation also provides retry and expiration features. The code was extracted from the google-cloud-env gem that originally used it.

Gemfile:
=

install:
=

Versions:

  1. 0.1.0 March 19, 2026 (19.5 KB)
  2. 0.0.0 March 16, 2026 (4 KB)

Owners:

Pushed by:

Authors:

  • Daniel Azuma

SHA 256 checksum:

=

Total downloads 270

For this version 140

Version Released:

License:

Apache-2.0

Required Ruby Version: >= 2.7.0

Links: