https://github.com/soenneker/soenneker.utils.atomicresources
AtomicResource is a thread-safe utility for holding a single instance of a resource that can be lazily created, atomically reset, and asynchronously torn down, ensuring safe concurrent access and predictable lifecycle management.
https://github.com/soenneker/soenneker.utils.atomicresources
atomic atomicresource atomicresources csharp dotnet free interlocked lock resource threadsafe util utils
Last synced: 6 months ago
JSON representation
AtomicResource is a thread-safe utility for holding a single instance of a resource that can be lazily created, atomically reset, and asynchronously torn down, ensuring safe concurrent access and predictable lifecycle management.
- Host: GitHub
- URL: https://github.com/soenneker/soenneker.utils.atomicresources
- Owner: soenneker
- License: mit
- Created: 2025-08-11T19:00:34.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-08-12T00:00:17.000Z (6 months ago)
- Last Synced: 2025-08-12T00:24:11.393Z (6 months ago)
- Topics: atomic, atomicresource, atomicresources, csharp, dotnet, free, interlocked, lock, resource, threadsafe, util, utils
- Language: C#
- Homepage: https://soenneker.com
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/soenneker.utils.atomicresources/)
[](https://github.com/soenneker/soenneker.utils.atomicresources/actions/workflows/publish-package.yml)
[](https://www.nuget.org/packages/soenneker.utils.atomicresources/)
#  Soenneker.Utils.AtomicResources
### AtomicResource is a thread-safe utility for holding a single instance of a resource that can be lazily created, atomically reset, and asynchronously torn down, ensuring safe concurrent access and predictable lifecycle management.
## Installation
```
dotnet add package Soenneker.Utils.AtomicResources
```