14 lines
353 B
Java
14 lines
353 B
Java
|
//: net/mindview/util/TaskItem.java
|
||
|
// 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;
|
||
|
}
|
||
|
} ///:~
|