I've got following code:
Observable.Interval(TimeSpan.FromMilliseconds(2500)).SubscribeOn(XXX).ObserveOn(YYY).Subscribe( t => SendCounter(t), e => HandleException(e));
Where XXX, YYY are Schedulers
.
Inside SendCounter(t) I set a text with t value.
The problem is that when I run the code I got this error:
'only the original thread that created a view hierarchy can touch its views'
I'm using this component: https://components.xamarin.com/view/rxforxamarin