ReactiveUI.Primitives.Extensions.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.
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.
Gets the timer slot used by the operator's OnNext logic to schedule deferred emissions.
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.
Forwards completion to the downstream observer and tears the sink down. The caller must hold the sink's gate.
Marks the sink terminal and disposes the timer without forwarding a notification. The caller must hold the sink's gate.
Forwards a terminal error to the downstream observer and tears the sink down. The caller must hold the sink's gate.