Differences wirth thread local
no "two way" mutability
defined lifetime
memory leaks for pooled threads
Basic example in one thread
ScopedValueDemoSimpleExample
Example how to propagate ScopedValue with Structured concurrency
ScopedValueStructureConcurrencyDemo
Last updated 11 months ago