You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The right way IMO is to "snapshot" the scope with a potential list of scoped values into a PersistentDict and then to write with(snapshot...) do f that sets those scopedvalues to those values again.
(found through Github search for ScopedValue)
The text was updated successfully, but these errors were encountered:
ProductionMonitoring.jl/src/Tracing/scoped_values_context.jl
Lines 31 to 42 in a278726
The direct modification of these fields is undefined behavior. JuliaLang/julia#52309
When I was asked about this in vchuravy/ScopedValues.jl#14 (comment) I stated that this optimization was planned.
Is now being transformed to:
The right way IMO is to "snapshot" the scope with a potential list of scoped values into a
PersistentDict
and then to writewith(snapshot...) do f
that sets those scopedvalues to those values again.(found through Github search for ScopedValue)
The text was updated successfully, but these errors were encountered: