所以我有以下RX更改,但它似乎阻止选择,好像要保留顺序。我的理解是它应该继续委托给任务池吗?
var observable = Observable.Interval(TimeSpan.FromMilliseconds(10));
observable.ObserveOn(Scheduler.TaskPool)
.Select(
i =>
{
Console.WriteLine("Here" + System.Threading.Thread.CurrentThread.ManagedThreadId);
System.Threading.Thread.Sleep(5000);
return i;
})
.ObserveOn(Scheduler.TaskPool)
.SubscribeOn(Scheduler.TaskPool)
.Subscribe(i => { Console.WriteLine(i); });