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

ReactiveUI.Primitives.Advanced.DeliveryGate

public static class DeliveryGate
Serializes deliveries to a downstream observer without holding a lock while the observer runs, so an observer that blocks on another producer's thread cannot deadlock it.
namespace ReactiveUI.Primitives.Advanced { public static class DeliveryGate { public static TimeSpan DefaultWaitBudget { get; } public static bool TryEnter(ref DeliveryGateState gate); public static bool TryEnterReentrant(ref DeliveryGateState gate); public static void Exit<[System.Runtime.CompilerServices.Nullable(0)] TDrain>(ref DeliveryGateState gate, TDrain drain) where TDrain : IDrainTarget; public static void Signal<[System.Runtime.CompilerServices.Nullable(0)] TDrain>(ref DeliveryGateState gate, TDrain drain) where TDrain : IDrainTarget; public static void Signal<[System.Runtime.CompilerServices.Nullable(0)] TDrain>(ref DeliveryGateState gate, TDrain drain, TimeSpan waitBudget) where TDrain : IDrainTarget; public static bool Reset(ref DeliveryGateState gate); } }