Categories: None [Edit]

lazy_data

https://rubygems.org/gems/lazy_data
https://github.com/dazuma/lazy_data
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.

Total

Ranking: 190,222 of 191,854
Downloads: 293

Daily

Ranking: 56,146 of 191,816
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName

Owners

#GravatarHandle
1icondazuma