Skip to content

Preserve 'interrupted' state in blocking methods #6904

Closed
@CheatEx

Description

@CheatEx

I've noted that BlockingMultiObserver#blockingGet() wraps and re-throws InterruptedException. This makes hard to recover interrupted state of a thread. The general convention is to either throw IE as is or restore the interrupted state so downstream code could handle it too.

RxJava seem to partially follow this convention, see #147 and

But not in the most used public methods.

Did you consider restoring interrupted state in blocking operations designed for external use, specifically in Completable, Single, Maybe, Observable blocking* methods?

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