Logo Mibo

ExternalValueNode<'T> Type

An adaptive value whose content is supplied by an external snapshot function, re-read only when invalidated via the handle returned by AVal.ofExternal (FDA AVal.ofExternal parity, MAPA-DESIGN §1.1). Not invalidated → reads are O(1): no re-read, no comparison, no allocation. The invalidate handle is O(1) to call and thread-safe (a foreign-thread call posts to the owner context, the cval.Post pattern); the re-read happens on the next read on the owner thread.

Constructors

Constructor Description

ExternalValueNode(read)

Full Usage: ExternalValueNode(read)

Parameters:
    read : unit -> 'T

Returns: ExternalValueNode<'T>
read : unit -> 'T
Returns: ExternalValueNode<'T>

Instance members

Instance member Description

this.Invalidate

Full Usage: this.Invalidate

The invalidate handle implementation (returned by AVal.ofExternal). Call this when the external source changed; the re-read happens on the next read. Not for direct use.

Type something to start searching.