Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

231
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda