# thread_local_scope
[](https://github.com/KyleDavidE/thread_local_scope/actions/workflows/rust.yml) 
Provides a token type `LocalScope` that guards access to thread local storage, avoiding the need for a separate closure for every access.
```rust
...
})
})??
```
becomes
```rust
local_scope(|scope| {
let one = scope.try_access(&LOCAL_ONE)?;
let two = scope.try_access(&LOCAL_TWO)?;
...
})?
```