Task Parallel Library - Custom Task Schedulers

后端 未结 4 601
萌比男神i
萌比男神i 2021-02-06 12:35

I have a requirement to fire off web service requests to an online api and I thought that Parallel Extensions would be a good fit for my needs.

The web service in questi

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-06 13:12

    I haven't used RX much, but AFAICT the Observable.Window method would work fine for this.

    http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.window(VS.103).aspx

    It would seem to be a better fit than Throttle which seems to throw elements away, which I'm guessing is not what you want

提交回复
热议问题