com.stanfy.enroscar.goro.ObservableFuture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of enroscar-goro Show documentation
Show all versions of enroscar-goro Show documentation
Android laibrary for handling tasks in multiple queues
package com.stanfy.enroscar.goro;
import java.util.concurrent.Executor;
import java.util.concurrent.Future;
/**
* Extends {@link java.util.concurrent.Future} interface with methods that allow adding listeners
* to task execution results.
*
* @param task execution result type
*
* @author Roman Mazur - Stanfy (http://stanfy.com)
*/
public interface ObservableFuture extends Future {
void subscribe(Executor executor, FutureObserver observer);
void subscribe(FutureObserver observer);
}