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,552 of 192,692
Downloads: 338

Daily

Ranking: 104,950 of 192,666
Downloads: 6

Depended by

RankDownloadsName

Depends on

RankDownloadsName

Owners

#GravatarHandle
1icondazuma