Last active
October 9, 2018 22:46
-
-
Save zsoltk/91cd200f8c4095b3ceba242892445d7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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