Package com.intellij.openapi.util
Interface RecursionGuard.StackStamp
- Enclosing class:
RecursionGuard
public static interface RecursionGuard.StackStamp
-
Method Summary
-
Method Details
-
mayCacheNow
boolean mayCacheNow()- Returns:
- whether a computation that started at the moment of this
RecursionGuard.StackStampinstance creation does not depend on any re-entrant recursive results. When such non-reliable results exist in the thread's call stack, returns false, otherwise true. If you use this withRecursionGuard.doPreventingRecursion(Object, Computable), then theRecursionGuard.markStack()+mayCacheNow()should be outside of recursion prevention call. Otherwise even the outer recursive computation result won't be cached.
-