WOLFRAM

EvaluationObject
EvaluationObject

Unsupported in Public Cloud

EvaluationObject[expr,]

represents an expression submitted for evaluation on any available parallel kernel.

Details

  • Evaluation objects are created with ParallelSubmit.
  • The results of evaluations are collected with WaitAll or WaitNext.
  • All evaluation objects appearing anywhere inside the argument of WaitAll[arg] will be replaced by the respective result of the evaluation.
  • EvaluationObject[]["prop"] returns the value of "prop" for a given EvaluationObject.
  • EvaluationObject[]["Properties"] returns a list of all properties available.
  • EvaluationObject[][All] returns an association with the properties as keys and the value of the respective property.
  • Possible properties for EvaluationObject include:
  • "Process"the expression to be evaluated
    "Result"the result of the evaluation
    "State"the current state of the evaluation object

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Submit a single evaluation and wait for it to finish:

Wait for all evaluations contained in a sum:

Scope  (2)Survey of the scope of standard use cases

During scheduling, an evaluation goes through these successive states: ready, running, received and finished:

Find the properties of an EvaluationObject:

Only after finishing the evaluation does the result become available:

Information[ev] gives the same information as ev[All]:

Properties & Relations  (2)Properties of the function, and connections to other functions

Evaluation objects are created with ParallelSubmit:

Their results are collected with WaitAll or WaitNext:

Scheduled evaluations no longer needed can be aborted with AbortKernels:

Possible Issues  (2)Common pitfalls and unexpected behavior

Each evaluation should be waited for exactly once:

The evaluation object has already completed:

Evaluation objects are created by ParallelSubmit; they cannot be input directly:

Wolfram Research (2008), EvaluationObject, Wolfram Language function, https://reference.wolfram.com/language/ref/EvaluationObject.html.
Wolfram Research (2008), EvaluationObject, Wolfram Language function, https://reference.wolfram.com/language/ref/EvaluationObject.html.

Text

Wolfram Research (2008), EvaluationObject, Wolfram Language function, https://reference.wolfram.com/language/ref/EvaluationObject.html.

Wolfram Research (2008), EvaluationObject, Wolfram Language function, https://reference.wolfram.com/language/ref/EvaluationObject.html.

CMS

Wolfram Language. 2008. "EvaluationObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EvaluationObject.html.

Wolfram Language. 2008. "EvaluationObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EvaluationObject.html.

APA

Wolfram Language. (2008). EvaluationObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EvaluationObject.html

Wolfram Language. (2008). EvaluationObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EvaluationObject.html

BibTeX

@misc{reference.wolfram_2024_evaluationobject, author="Wolfram Research", title="{EvaluationObject}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/EvaluationObject.html}", note=[Accessed: 10-January-2025 ]}

@misc{reference.wolfram_2024_evaluationobject, author="Wolfram Research", title="{EvaluationObject}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/EvaluationObject.html}", note=[Accessed: 10-January-2025 ]}

BibLaTeX

@online{reference.wolfram_2024_evaluationobject, organization={Wolfram Research}, title={EvaluationObject}, year={2008}, url={https://reference.wolfram.com/language/ref/EvaluationObject.html}, note=[Accessed: 10-January-2025 ]}

@online{reference.wolfram_2024_evaluationobject, organization={Wolfram Research}, title={EvaluationObject}, year={2008}, url={https://reference.wolfram.com/language/ref/EvaluationObject.html}, note=[Accessed: 10-January-2025 ]}