https://github.com/janstenpickle/hotswap-ref
Asynchronous concurrent hotswappable references
https://github.com/janstenpickle/hotswap-ref
Last synced: 9 months ago
JSON representation
Asynchronous concurrent hotswappable references
- Host: GitHub
- URL: https://github.com/janstenpickle/hotswap-ref
- Owner: janstenpickle
- Created: 2021-05-26T20:11:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-19T16:00:01.000Z (almost 2 years ago)
- Last Synced: 2025-07-29T12:58:54.552Z (11 months ago)
- Language: Scala
- Size: 116 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# HotswapRef
[](https://github.com/janstenpickle/hotswap-ref/actions?query=workflow%3A%22Continuous%20Integration%22)
[](https://github.com/janstenpickle/hotswap-ref/releases/latest)
[](https://maven-badges.herokuapp.com/maven-central/io.janstenpickle/hotswap-ref_3)
[](https://scala-steward.org)
Utility built on top of [cats-effect](https://typelevel.org/cats-effect/)
[`Hotswap`](https://typelevel.org/cats-effect/docs/std/hotswap). Decouples the operations of swapping and accessing a
resource, allowing them to be performed within different fibers.
## Quickstart
Add the following dependencies to your `build.sbt`:
```scala
"io.janstenpickle" %% "hotswap-ref" % "0.2.2"
```
## Usage
See [HotswapRef](modules/core/src/main/scala/io/janstenpickle/hotswapref/HotswapRef.scala),
[HotswapRefConstructor](modules/core/src/main/scala/io/janstenpickle/hotswapref/HotswapRefConstructor.scala) and
[ConditionalHotswapRefConstructor](modules/core/src/main/scala/io/janstenpickle/hotswapref/ConditionalHotswapRefConstructor.scala)
for Scaladoc notes.
## Contributing
This project supports the [Scala Code of Conduct](https://typelevel.org/code-of-conduct.html) and aims that its channels
(mailing list, Discord, github, etc.) to be welcoming environments for everyone.