MongoosePeople. Places. Questionable inventions.

All help topics · Link to this topic

Showing help on 'set_task_local()'

Syntax: set_task_local(ANY value)

Sets a value that gets associated with the current running task. This value persists across verb calls and gets reset when the task is killed, making it suitable for securely passing sensitive intermediate data between verbs. The value can then later be retrieved using the `task_local` function.

The programmer must be a wizard, or E_PERM is raised.

set_task_local("arbitrary data")
set_task_local({"list", "of", "arbitrary", "data"})