An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

[![](https://img.shields.io/nuget/v/soenneker.utils.atomicresources.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.utils.atomicresources/)
[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.utils.atomicresources/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.utils.atomicresources/actions/workflows/publish-package.yml)
[![](https://img.shields.io/nuget/dt/soenneker.utils.atomicresources.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.utils.atomicresources/)

# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) 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
```