is an option that specifies the content of associations to which to apply handler functions.
HandlerFunctionsKeys
is an option that specifies the content of associations to which to apply handler functions.
Details
- The following are typical settings for HandlerFunctionsKeys:
-
Automatic try to include only elements required by handler functions All include all available elements {"key1","key2",…} include particular keys - The keys available with particular tasks are listed under the functions that submit the tasks.
Examples
Basic Examples (7)
Display the result of evaluation after the task is finished:
SessionSubmit[Integrate[Log[t] ^ 4 / Sqrt[1 - t ^ 2], {t, 0, 1}], HandlerFunctions -> <|"TaskFinished" :> MessageDialog|>, HandlerFunctionsKeys -> {"EvaluationResult"}]Print the complete Association available to a handler function:
SessionSubmit[N[Pi, 200], HandlerFunctions -> <|"TaskFinished" -> Print|>, HandlerFunctionsKeys -> All]Display the result of the Print evaluated in a subkernel:
LocalSubmit[Print["Hello!"],
HandlerFunctions -> <|"PrintOutputGenerated" -> (Print[#PrintOutput]&)|>,
HandlerFunctionsKeys -> {"EvaluationExpression", "PrintOutput"}]Display a dialog when the message was generated:
SessionSubmit[1 / 0, HandlerFunctions -> <|"MessageGenerated" -> MessageDialog|>,
HandlerFunctionsKeys -> {"EvaluationExpression", "MessageOutput"}]Print the message generated by the subkernel:
LocalSubmit[1 / 0, HandlerFunctions -> <|"MessageGenerated" -> (Message[#MessageOutput]&)|>, HandlerFunctionsKeys -> {"MessageOutput"}]Specify that the status code and content type are to be passed to any handler function:
URLSubmit["http://www.wolfram.com", HandlerFunctions -> <|"TaskFinished" -> Print|>, HandlerFunctionsKeys -> {"StatusCode", "ContentType"}]Receive the body of the response as a string:
URLSubmit["http://www.wolfram.com", HandlerFunctions -> <|"BodyReceived" -> Print|>, HandlerFunctionsKeys -> {"Body"}]Receive the body of the response as a list of bytes:
URLSubmit["http://www.wolfram.com", HandlerFunctions -> <|"BodyReceived" -> Print|>, HandlerFunctionsKeys -> {"BodyBytes"}]Receive the body of the response as a ByteArray:
URLSubmit["http://www.wolfram.com", HandlerFunctions -> <|"BodyReceived" -> Print|>, HandlerFunctionsKeys -> {"BodyByteArray"}]Related Guides
History
Text
Wolfram Research (2016), HandlerFunctionsKeys, Wolfram Language function, https://reference.wolfram.com/language/ref/HandlerFunctionsKeys.html.
CMS
Wolfram Language. 2016. "HandlerFunctionsKeys." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HandlerFunctionsKeys.html.
APA
Wolfram Language. (2016). HandlerFunctionsKeys. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HandlerFunctionsKeys.html
BibTeX
@misc{reference.wolfram_2026_handlerfunctionskeys, author="Wolfram Research", title="{HandlerFunctionsKeys}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/HandlerFunctionsKeys.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_handlerfunctionskeys, organization={Wolfram Research}, title={HandlerFunctionsKeys}, year={2016}, url={https://reference.wolfram.com/language/ref/HandlerFunctionsKeys.html}, note=[Accessed: 12-June-2026]}