public static IDisposable False(this ReactiveBool reactiveBool, Action <bool> action) { return(reactiveBool .Where(_ => !_) .First() .Subscribe(_ => action(_))); }
public static IDisposable OnTrue(this ReactiveBool reactiveBool, Action <bool> action) { return(reactiveBool .Where(_ => _) .Subscribe(_ => action(_))); }