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

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

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

import java.util.concurrent.Callable;

/**
 * 

A {@link Promise} that exposes a computational task suitable for execution by an {@link java.util.concurrent.ExecutorService}.

* * @author Brent Douglas * @since 1.0 */ public interface ExecutablePromise extends Promise { /** * @return The computation as a {@link Runnable}. */ Runnable asRunnable(); /** * @return The computation as a {@link Callable}. */ Callable asCallable(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy