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

294
Vistas
RxJava - Kotlin: Throttle the stream for same type of events

I have an array of integers a = [1, 2, 1, 2, 1 , 3, 4, 5, 6, 7, 1, 2] Assume that each integer is emitted after a gap of 100ms

How is it possible to make sure that there is a gap of atleast 500ms between same integers being emitted. Ignore the element if same element was emitted less than 500ms ago.

For example: in above case, the result should look like

1,2,3,4,5,7,1,2
over 4 years ago · Santiago Trujillo
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