Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Last active October 9, 2018 22:46
Show Gist options
  • Save zsoltk/91cd200f8c4095b3ceba242892445d7f to your computer and use it in GitHub Desktop.
Save zsoltk/91cd200f8c4095b3ceba242892445d7f to your computer and use it in GitHub Desktop.
package io.reactivex.functions;
/**
* A functional interface (callback) that accepts a single value.
* @param <T> the value type
*/
public interface Consumer<T> {
/**
* Consume the given value.
* @param t the value
* @throws Exception on error
*/
void accept(T t) throws Exception;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment