Is it possible to read another Task's task_local_storage

Is it possible to read the task_local_storage of a Task? For example, if you were to spawn several long running child tasks and you keep the handles to the child Tasks, can another task read the storage using those handles before the child tasks have completed?

It is technically possible but not a good idea. You probably want to use channels for this type of thing.

3 Likes