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

io.machinecode.then.api.OnComplete Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package io.machinecode.then.api;

/**
 * 

Listener for a {@link Deferred} entering a state where {@link Deferred#isDone()} * returns {@code true}.

* * @see Deferred * @author Brent Douglas * @since 1.0 */ public interface OnComplete { /** * @param state The final state of the {@link Deferred}. It is not guaranteed that this parameter will be * one of the constants defined in {@link Promise}, inheritors MAY provide alternate * terminal states. * * @see Deferred#RESOLVED * @see Deferred#REJECTED * @see Deferred#PENDING */ void complete(final int state); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy