<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.3.0" />

ReactiveUI.Primitives.Extensions.TimerSinkState<T>

public sealed class TimerSinkState<T>
Shared lock + timer + done-flag triple used by the synchronous timer-driven operator sinks (Debounce-Until, Detect-Stale, Throttle-Distinct, Buffer-Until-Idle, etc.). Each of those sinks previously hand-rolled three identical OnError / OnCompleted / Dispose method bodies on top of the same fields; this helper centralises the bodies so the per-sink class only carries the operator-specific OnNext logic. Sinks compose one instance and forward to it — no base class.
public bool Done { get; }

Gets a value indicating whether the sink has reached a terminal state (OnError, OnCompleted, or Dispose). Read inside the owning sink's gate by callers that need to short-circuit a deferred operation.

public SwapDisposable Timer { get; }

Gets the timer slot used by the operator's OnNext logic to schedule deferred emissions.

public TimerSinkState(IObserver<T> downstream)

Shared lock + timer + done-flag triple used by the synchronous timer-driven operator sinks (Debounce-Until, Detect-Stale, Throttle-Distinct, Buffer-Until-Idle, etc.). Each of those sinks previously hand-rolled three identical OnError / OnCompleted / Dispose method bodies on top of the same fields; this helper centralises the bodies so the per-sink class only carries the operator-specific OnNext logic. Sinks compose one instance and forward to it — no base class.

public void HandleCompletedLocked()

Forwards completion to the downstream observer and tears the sink down. The caller must hold the sink's gate.

public void HandleDisposeLocked()

Marks the sink terminal and disposes the timer without forwarding a notification. The caller must hold the sink's gate.

public void HandleErrorLocked(Exception error)

Forwards a terminal error to the downstream observer and tears the sink down. The caller must hold the sink's gate.