RxJava的Action

A functional interface similar to Runnable but allows throwing a checked exception.
public interface Action {
/**
* Runs the action and optionally throws a checked exception.
* @throws Exception if the implementation wishes to throw a checked exception
*/
void run() throws Exception;
}
posted @ 2018-01-22 09:54  天长地久-无为  阅读(230)  评论(0编辑  收藏  举报