hprose.util.concurrent.Thenable Maven / Gradle / Ivy
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* Thenable.java *
* *
* Thenable interface for Java. *
* *
* LastModified: Jun 27, 2016 *
* Author: Ma Bingyao *
* *
\**********************************************************/
package hprose.util.concurrent;
public interface Thenable {
Promise then(Action onfulfill, Action onreject);
Promise then(Func onfulfill, Func onreject);
Promise then(AsyncFunc onfulfill, Func onreject);
Promise then(AsyncFunc onfulfill, AsyncFunc onreject);
Promise then(Func onfulfill, AsyncFunc onreject);
}