Skip to content

Instantly share code, notes, and snippets.

@nhphong
Created July 8, 2019 03:18
Show Gist options
  • Save nhphong/fa863553007e1ea2eb8377fc0c6197ee to your computer and use it in GitHub Desktop.
Save nhphong/fa863553007e1ea2eb8377fc0c6197ee to your computer and use it in GitHub Desktop.
fun <T> Observable<T>.debounceIf(
predicate: (T) -> Boolean,
timeout: Long,
unit: TimeUnit,
scheduler: Scheduler
): Observable<T> {
return this.debounce(timeout, unit, scheduler)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment