All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.englishtown.promises.Thenable Maven / Gradle / Ivy

The newest version!
package com.englishtown.promises;

import java.util.function.Function;

/**
 * Promises/A+ implementation
 */
public interface Thenable {

    default  Thenable then(Function> onFulfilled) {
        return then(onFulfilled, null);
    }

     Thenable then(Function> onFulfilled, Function> onRejected);

}