ExpiringValue is a container that returns the contained value if its age is less that max_age. Otherwise, an expiration marker value is returned. This comes handy if you want to combine a large number of values into a single output while ensuring that the values are still current.
ExpiringValue
is a container that returns the contained value if its age is less thatmax_age
. Otherwise, an expiration marker value is returned. This comes handy if you want to combine a large number of values into a single output while ensuring that the values are still current.