Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

227
Views
Where is Observable#asObservable() in RxJava2?

I would like to observe my BehaviourSubject. In RxJava 1 I was calling asObservable(), which is now gone.

I found publish() but it returns connectable, which I don't want to.

How to turn behavior subject into observable in RxJava 2?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

From the What's different in 2.0 page, from 1.x Observable to 2.x Flowable :

asObservable : renamed to hide(), hides all identities now

So it seems that the hide method is what you are looking for.

about 4 years ago · Santiago Trujillo Report

0

You're probably looking for Observable.hide()

Hides the identity of this Observable and its Disposable. Allows hiding extra features such as Subject's Observer methods or preventing certain identity-based optimizations (fusion).

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!