Dotty Documentation

0.9.0-bin-SNAPSHOT

trait ThunkHolder
extends Object

Create and hold thunks. A thunk is a (potentially) unevaluated value that may be evaluated once.

[-] Constructors

[-] Members

[+] private val thunks : ListBuffer [ Lazy [ Nothing <: Any ] ]
[+] @tailrec protected final def forceThunks ( ) : Unit

Force all unevaluated thunks to prevent space leaks.

[+] def lzy ( t: => T ) : Lazy [ T ]

Store the by-name parameter s in a Lazy container without evaluating it. It will be forced by the next call to forceThunks()