public final class SafeLazy
extends java.lang.Object
It holds a reference to a thunk that is lazily evaluated and then its reference is clear to avoid memory leaks in memory-intensive code. It needs to be defined in [[xsbti]] or a subpackage, see [[xsbti.api.Lazy]] for similar definitions.
| Constructor and Description |
|---|
SafeLazy() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Lazy<T> |
apply(java.util.function.Supplier<T> sbtThunk)
Return a sbt [[xsbti.api.Lazy]] from a given Scala parameterless function.
|
static <T> Lazy<T> |
strict(T value)
Return a sbt [[xsbti.api.Lazy]] from a strict value.
|