4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[RxSwift] zipをconcurrencyに動作させてみる

4
Last updated at Posted at 2017-10-05

RxSwiftにてzipを使うときに、Concurrencyに実行したい場合があります。
この時にどのようにsubscribeを行うべきなのかを考える材料として幾つかパターンを作ってみました。

前提として、zipするObservableを.subscribeOn(何か) する必要があります。

CurrentThreadScheduler

Screen Shot 2017-10-05 at 11.59.08.png

SerialDispatchQueueScheduler

Screen Shot 2017-10-05 at 12.03.21.png

OperationQueueScheduler

Screen Shot 2017-10-05 at 11.58.31.png

ConcurrentQueueScheduler

Screen Shot 2017-10-05 at 11.57.34.png
4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?