[Home] Type Microsoft.FSharp.Control.Lazy


The type of delayed computations. Use the values in the [[Lazy]] module to manipulate values of this type, and the notation 'lazy expr' to create values of this type.

Full Type Signature

type Lazy<'a> = {mutable status: LazyStatus<'a>;}
                with
                  static member Create : (unit -> 'a) -> Lazy<'a>
                  member Force : unit -> 'a
                  member SynchronizedForce : unit -> 'a
                  member IsDelayed : bool
                  member IsException : bool
                  member IsForced : bool
                  member Value : 'a
                end

Instance Members

MemberDescription
member Force : unit -> 'a
Force the execution of this value and return its result. Same as Value.
member IsDelayed : bool
The module 'Lazy' contains additional values and functions related to this type.
member IsException : bool
The module 'Lazy' contains additional values and functions related to this type.
member IsForced : bool
The module 'Lazy' contains additional values and functions related to this type.
member SynchronizedForce : unit -> 'a
Force the execution of this value and return its result, using mutual exclusion to prevent other threads also computing the value.
member Value : 'a
Force the execution of this value and return its result. Same as Value.

Static Members

MemberDescription
member Create : (unit -> 'a) -> Lazy<'a>
The module 'Lazy' contains additional values and functions related to this type.

See Also

Microsoft.FSharp.Control


Documentation for assembly FSharp.Core, version 1.9.4.19, generated using F# version 1.9.4.19