I want to append an extra "closing" item to my observable sequence. Is there a Reactive LINQ extension that is like
public static IObservable<TSource> EndWith<TSource>(this IObservable<TSource> source, TSource element)
Your 'approximation' is the correct answer.
Concat will add
element to the end of your source stream, but only if:
Perhaps if you aren't getting it, your
source stream isn't actually terminating?
It might be better if you show us more of your code etc.
There isn't an 'out of the box' API method (like
StartsWith) that does this for you, but using
Observable.Return is a pretty reasonable way to do it yourself.