I've two observables, one is a data observable that holds the data and I've one locker observable. When the locker value has value 'lock' the data observable should send his data to his subscribers. When we unlock the data observable it should then send the last next value to the subscribers.
I've included a diagram that shows what I want. When the B source is L (locked) it should hold the value, when the B source is U it should pass the A value and return also the last know value on change.
Hope that someone can help me out with finding the right operator for this.
