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

291
Views
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
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!