Skip to content

Instantly share code, notes, and snippets.

@jwkidd3
Created January 18, 2017 22:16
Show Gist options
  • Save jwkidd3/b707e053029dd56438ac6eee397830da to your computer and use it in GitHub Desktop.
Save jwkidd3/b707e053029dd56438ac6eee397830da to your computer and use it in GitHub Desktop.
Observable.interval(100, TimeUnit.MILLISECONDS)
.take(5)
.window(250, 100, TimeUnit.MILLISECONDS)
.flatMap(o -> o.toList())
.subscribe(System.out::println);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment