ChangeableValue<'T> Type
Constructors
| Constructor |
Description
|
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.GetValue
Returns: 'T
|
Gets the current value and registers a dependency for the calling
computation (FDA
|
Full Usage:
this.Post
Parameters:
'T
|
Posts a new value from any thread. The value is applied automatically at the next graph operation on the owner thread — no pump call is needed. Several posts to this source before the application collapse to the last value. The source equality check applies at application, so posting an equal value does not mark. Allocates nothing.
Post is the only operation a foreign thread may call on a graph. It never touches graph state: it writes the typed pending field and, if the source is not queued yet, pushes the source onto the bounded post ring. If the ring is full, Post waits (spin with yield backoff) until the owner drains it; items are never dropped. The pending value crosses threads as a plain (non-atomic) write. 'T must be a reference type or a struct no larger than a machine word: larger structs can tear (the owner may apply a value mixed from two posts).
Example
val h: obj
|
Full Usage:
this.Set
Parameters:
'T
|
|
Full Usage:
this.UpdateTo
Parameters:
'T
Returns: bool
|
Sets the current value and returns whether the value changed (FDA
|
Full Usage:
this.Value
Returns: 'T
|
Mibo