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