# Logical mistyping, book's version 4, chapter 15, page 341(pdf vesion)

**URL:** <https://forums.kodeco.com/t/logical-mistyping-books-version-4-chapter-15-page-341-pdf-vesion/121596>\
**Category:** RxSwift\
**Created:** [October 2, 2020, 2:54am UTC](https://forums.kodeco.com/t/logical-mistyping-books-version-4-chapter-15-page-341-pdf-vesion/121596 "2020-10-02T02:54:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![silentgnom](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/silentgnom/32/81494_2.png) [@silentgnom](https://forums.kodeco.com/u/silentgnom)\
**Post date:** [October 2, 2020, 2:54am UTC](https://forums.kodeco.com/t/logical-mistyping-books-version-4-chapter-15-page-341-pdf-vesion/121596/1 "2020-10-02T02:54:04Z")

</div>

Original text:

> Blockquote  
> What if you want to generate animals on the global queue, but receive them on the Main Thread? For the first case, the observeOn is already correct, but for the second it’s necessary to use subscribeOn.

Replace the animal subscription, this time with the following:

```
animal 
    .subscribeOn(MainScheduler.instance) 
    .dump()
    .observeOn(globalScheduler) 
    .dumpingSubscription()
    .disposed(by: bag)

```

If we want to generate animals on the global queue, but receive on Main, we need to write  
`.subscribeOn(globalScheduler)`  
`.observeOn(MainScheduler.instance)`

Or I not right understood?

P.S. I love your books, very thanks for your hard works.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [March 17, 2021, 6:54pm UTC](https://forums.kodeco.com/t/logical-mistyping-books-version-4-chapter-15-page-341-pdf-vesion/121596/2 "2021-03-17T18:54:06Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
