Module Component.DelayedSource

Delayed is a bit like Lazy.t but may in the future offer the chance to peek inside to be able to optimize the calculation

Sourceval eager : bool ref

If eager is true then no delaying is done. Most useful for testing and documentation

Sourcetype 'a t = {
  1. mutable v : 'a option;
  2. mutable get : (unit -> 'a) option;
}
Sourceval get : 'a t -> 'a
Sourceval put : (unit -> 'a) -> 'a t
Sourceval put_val : 'a -> 'a t