Exemple #1
0
 /// <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));
 }
Exemple #2
0
 /// <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));
 }