# \#scopedvalues

**URL:** https://discourse.julialang.org/tag/scopedvalues/1624.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How do ScopedValues actually work?](https://discourse.julialang.org/t/how-do-scopedvalues-actually-work/133270)

<div class="topic-metadata">

**Author:** [@benninkrs](https://discourse.julialang.org/u/benninkrs)\
**Replies:** 3\
**Last updated:** [October 19, 2025, 6:00pm UTC](https://discourse.julialang.org/t/how-do-scopedvalues-actually-work/133270 "2025-10-19T18:00:47Z")

</div>

I understand that a ScopedValue is a key into Scope (a wrapper for a PersistentDict) that is accessible by Core.current\_scope(). I understand that @with creates a new Scope with the specified value. What I don’t unders…

---

## [Task local storage and scoped values: What they are used for](https://discourse.julialang.org/t/task-local-storage-and-scoped-values-what-they-are-used-for/132045)

<div class="topic-metadata">

**Author:** [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Replies:** 12\
**Last updated:** [September 22, 2025, 7:46am UTC](https://discourse.julialang.org/t/task-local-storage-and-scoped-values-what-they-are-used-for/132045 "2025-09-22T07:46:55Z")

</div>

A recent Slack thread discussed what the purpose of task local storage (TLS) and scoped values was. Since these features of Julia are a little obscure, @Krastanov suggested I post them to Discourse for posterity. @vchur…

---

## [What is the use of ScopedValues beyond web authorization?](https://discourse.julialang.org/t/what-is-the-use-of-scopedvalues-beyond-web-authorization/116162)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 14\
**Last updated:** [December 16, 2024, 2:40am UTC](https://discourse.julialang.org/t/what-is-the-use-of-scopedvalues-beyond-web-authorization/116162 "2024-12-16T02:40:42Z")

</div>

ScopedValues are coming to Julia v1.11 (I think?). After reading a few examples, I think of them as resettable Refs. Apparently they behave like constants even though you can temporarily change their values. They are use…

---

## [What is the use case for ScopedValues?](https://discourse.julialang.org/t/what-is-the-use-case-for-scopedvalues/116390)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 1\
**Last updated:** [June 29, 2024, 2:31pm UTC](https://discourse.julialang.org/t/what-is-the-use-case-for-scopedvalues/116390 "2024-06-29T14:31:29Z")

</div>

I did some googling about ScopedValues, and generally understand that they are useful for threaded applications, but I’m still not tracking their value against just passing a value as an argument. Could someone give me …
