Gets the current status of the future operation.
Status string: "NOT_ACTIVE", "IN_PROGRESS", "Success", or "Fail"
if (future.status === "IN_PROGRESS") {
console.log(`Operation running: ${future.progress}% complete`);
} else if (future.status === "Success") {
console.log("Operation completed successfully!");
}
Gets human-readable time remaining for the operation.
Formatted time string (e.g., "5 minutes", "30 seconds") or empty string if unknown
const timeLeft = future.timeRemaining;
if (timeLeft) {
console.log(`${timeLeft} remaining`);
}
the unique modelId for this Future
any options that should be merged into the Future
options.id - the unique id of the Future
options.name - the name of the Future
Name
FutureModel
Version
1.0.0
Author
Matthew Holman maholman@coca-cola.com
Represents a future.