Skip to content
Docs Try Aspire

ValueSnapshot<T> Properties

Class Properties 1 member
Provides an asynchronously initialized value that: - Can be awaited via GetValueAsync() until the first value or exception is set. - Exposes the latest value after it has been set (supports re-setting). - Tracks whether a value or exception was ever set via IsValueSet. - Supports setting an exception that will be thrown by GetValueAsync. Thread-safe for concurrent SetValue / SetException / GetValueAsync calls.
True once a value or exception has been set at least once.
public bool IsValueSet { get; }