io.ray.api.WaitResult Maven / Gradle / Ivy
package io.ray.api;
import java.util.List;
/**
* Represents the result of a Ray.wait call. It contains 2 lists, one containing the locally
* available objects, one containing the rest.
*/
public final class WaitResult {
private final List> ready;
private final List> unready;
public WaitResult(List> ready, List> unready) {
this.ready = ready;
this.unready = unready;
}
/** Get the list of ready objects. */
public List> getReady() {
return ready;
}
/** Get the list of unready objects. */
public List> getUnready() {
return unready;
}
}