Cancels the execution of this action.
Cancels the execution of this action.
Returns whether the promise has been cancelled.
Blocks and returns the result of this job.
Blocks and returns the result of this job.
Returns whether the action has already been completed with a value or an exception.
Returns whether the action has already been completed with a value or an exception.
When this action is completed, either through an exception, or a value, applies the provided function.
When this action is completed, either through an exception, or a value, applies the provided function.
Blocks until this action completes.
Blocks until this action completes.
maximum wait time, which may be negative (no waiting is done), Duration.Inf for unbounded waiting, or a finite positive duration
this FutureAction
Awaits and returns the result (of type T) of this action.
Awaits and returns the result (of type T) of this action.
maximum wait time, which may be negative (no waiting is done), Duration.Inf for unbounded waiting, or a finite positive duration
the result value if the action is completed within the specific maximum wait time
exception during action execution
Executes some action enclosed in the closure.
Executes some action enclosed in the closure. To properly enable cancellation, the closure should use runJob implementation in this promise. See takeAsync for example.
Runs a Spark job.
Runs a Spark job. This is a wrapper around the same functionality provided by SparkContext to enable cancellation.
The value of this Future.
The value of this Future.
If the future is not completed the returned value will be None. If the future is completed the value will be Some(Success(t)) if it contains a valid result, or Some(Failure(error)) if it contains an exception.
:: Experimental :: A FutureAction for actions that could trigger multiple Spark jobs. Examples include take, takeSample. Cancellation works by setting the cancelled flag to true and interrupting the action thread if it is being blocked by a job.