I try to run my task immediately and then run it in a time interval. I wrote the following:
var syncMailObservable = Observable.Interval(TimeSpan.FromSeconds(15)); syncMailObservable.Subscribe(s => MyTask());
The problem is that the task starts only after 15 seconds. I need to run my task at the beginning, and then continue at a time interval.
How can I do it?
Wasim
source share