/// <summary> /// The events of <paramref name="source"/> when <paramref name="gate"/> is /// true. /// </summary> public static IObservable <A> Gate( IObservable <A> source, Behaviour <bool> gate) { return(source.Where(_ => gate.Value)); }
/// <summary> /// The events of <paramref name="source"/> when <paramref name="gate"/> is /// true. /// </summary> public static IObservable <A> Gate <A>( this IObservable <A> source, Behaviour <bool> gate) { return(Behaviour.Gate(source, gate)); }