2015-04-20 15:36:01 -07:00
|
|
|
|
//: net/mindview/util/TaskItem.java
|
2015-05-29 14:18:51 -07:00
|
|
|
|
// <20>2015 MindView LLC: see Copyright.txt
|
2015-04-20 15:36:01 -07:00
|
|
|
|
// A Future and the Callable that produced it.
|
|
|
|
|
package net.mindview.util;
|
|
|
|
|
import java.util.concurrent.*;
|
|
|
|
|
|
|
|
|
|
public class TaskItem<R,C extends Callable<R>> {
|
|
|
|
|
public final Future<R> future;
|
|
|
|
|
public final C task;
|
|
|
|
|
public TaskItem(Future<R> future, C task) {
|
|
|
|
|
this.future = future;
|
|
|
|
|
this.task = task;
|
|
|
|
|
}
|
|
|
|
|
} ///:~
|