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:
=

インストール:
=

バージョン履歴:

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

所有者:

プッシュ者:

作者:

  • Daniel Azuma

SHA 256チェックサム:

=

累計ダウンロード数 270

このバージョンのみ 140

このバージョンがリリースされたのは:

ライセンス:

Apache-2.0

必要なRubyのバージョン: >= 2.7.0

リンク: