EvaluationObject
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 allBasic Examples (2)
Scope (2)
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)
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)
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:
Text
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.
APA
Wolfram Language. (2008). EvaluationObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EvaluationObject.html