RunThreadInContext
Last updated
Last updated
Executes the code in the callback with a specific parent context so a specific application name is visible and an optional sessionID, or a specific context can be provided from another request.
If context is provided, application name and sessionID are not allowed.
Argument | Type | Required | Description | Default |
---|---|---|---|---|
applicationName
string
false
The application name to use run the code in.
sessionId
string
false
The sessionID to use to run the code in (requires application name).
context
any
false
The context to use to run the code in. Mututally exclusive with applicationName and sessionId.
callback
function
true
The function to run in the new context.