Header menu logo FSharp.Data.Adaptive

ChangeableValue<'T> Type

Represents an adaptive value that can be changed by application code and Used in dependency-aware computations.

Constructors

Constructor Description

ChangeableValue(value)

Full Usage: ChangeableValue(value)

Parameters:
    value : 'T

Returns: cval<'T>

Creates a new changeable value, intially holding the given value

value : 'T
Returns: cval<'T>

Instance members

Instance member Description

this.GetValue

Full Usage: this.GetValue

Parameters:
Returns: 'T

Gets the current value and adds a dependency to the caller (if any)

token : AdaptiveToken
Returns: 'T

this.UpdateTo

Full Usage: this.UpdateTo

Parameters:
    arg0 : 'T

Returns: bool

Sets the current state of the cval.

arg0 : 'T
Returns: bool

this.Value

Full Usage: this.Value

Gets or sets the current value. Setting the value requires a Transaction to be active using `transact`.

Type something to start searching.