I need to ignore Observable values for a period of time when another Observable provides a value.
Currently, my implementation uses a variable to control blocking (or ignoring).
bool block = false;
var blocker = observable1.Do(_ => block = true )
.Throttle( _ => Observable.Timer(_timeToBlock)
.Subscribe( _ => block = false ));
var receiver = observable2.Where( i => !block && SomeCondition(i) )
.Subscribe( i=> EvenMoreStuff(i) );
Is there a more Rx way to do this, by combining these two observables?
EDIT: small change to blocker subscription