SafeLazyProxy

Proxy SafeLazy functionality from the Java implementation implementation in xsbt.api.SafeLazy to Scala helpers.

The implementation of these helpers are not reused between each other because they create intermediate anonymous functions and the price of a new object in this hot path is not worth it.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[T](s: => T): Lazy[T]

Return a lazy implementation of a Scala by-name parameter.

Return a lazy implementation of a Scala by-name parameter.

def strict[T](s: T): Lazy[T]

Return a lazy implementation of a strict value.

Return a lazy implementation of a strict value.