# Is it possible to read another Task's task\_local\_storage

**URL:** https://discourse.julialang.org/t/is-it-possible-to-read-another-tasks-task-local-storage/110324
**Category:** Julia at Scale
**Tags:** task\_local\_storage
**Created:** [February 16, 2024, 10:53pm UTC](https://discourse.julialang.org/t/is-it-possible-to-read-another-tasks-task-local-storage/110324 "2024-02-16T22:53:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rdavis120](https://avatars.discourse-cdn.com/v4/letter/r/b5a626/32.png) [@rdavis120](https://discourse.julialang.org/u/rdavis120)
#### Post date: [February 16, 2024, 10:53pm UTC](https://discourse.julialang.org/t/is-it-possible-to-read-another-tasks-task-local-storage/110324/1 "2024-02-16T22:53:55Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)
#### Post date: [February 17, 2024, 2:29am UTC](https://discourse.julialang.org/t/is-it-possible-to-read-another-tasks-task-local-storage/110324/2 "2024-02-17T02:29:03Z")

</div>

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