Invocation policy implements whether to wait for the operation result or not.
This applies only in the limited number of operations. The best examples are getOrElse
and getOrFuture. First, both methods invoke get, then, if missed, compute orElse clause.
Finally, there is the invocation of set, however, in some scenarios, there is not required to
wait for the result of set operation. The value can be returned earlier. This is the difference
between Eager (not waiting) and Lazy (waiting) invocation policies.
Invocation policy implements whether to wait for the operation result or not. This applies only in the limited number of operations. The best examples are
getOrElse
andgetOrFuture
. First, both methods invokeget
, then, if missed, computeorElse
clause. Finally, there is the invocation ofset
, however, in some scenarios, there is not required to wait for the result ofset
operation. The value can be returned earlier. This is the difference betweenEager
(not waiting) andLazy
(waiting) invocation policies.