Skip to content

[RxJava 2.2.21]: throttleFirst does not switch thread to the default computation thread while throttleLast does switch thread to the default computation thread #7538

@TonyTangAndroid

Description

@TonyTangAndroid

sample repo to reproduce the issue: I have this pull request TonyTangAndroid/HelloRxJava#8 here to demonstrate that item through throttleFirst will remain to be the upstream thread main while item through throttleLast will be switched to the RxComputationThreadPool-2. This comes to me as a surprise.

Expectation : I had used throttleLast and learned that throttleLast will switch the thread to Computation thread pool. Hence, I made assumption that throttleFirst will also do the same.

Actual : item through throttleFirst will remain to be the upstream thread main.

throttle_first_vs_throttle_last_thread

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions