lazy value computation with multiple users
More...
#include <userver/concurrent/lazy_value.hpp>
|
| LazyValue (std::function< T()> f) |
|
const T & | operator() () |
| Get an already calculated result or calculate it. It is guaranteed that f is called exactly once. Can be called concurrently from multiple coroutines.
|
|
template<typename T>
class concurrent::LazyValue< T >
lazy value computation with multiple users
Definition at line 22 of file lazy_value.hpp.
◆ LazyValue()
◆ operator()()
Get an already calculated result or calculate it. It is guaranteed that f
is called exactly once. Can be called concurrently from multiple coroutines.
- Exceptions
-
Definition at line 43 of file lazy_value.hpp.
The documentation for this class was generated from the following file: