https://github.com/horothesun/concurrentdictionary
Thread-safe Swift dictionary.
https://github.com/horothesun/concurrentdictionary
dictionary github-actions swift swift-package swift-package-manager swiftpm thread-safe thread-safety threadsafe
Last synced: 8 months ago
JSON representation
Thread-safe Swift dictionary.
- Host: GitHub
- URL: https://github.com/horothesun/concurrentdictionary
- Owner: horothesun
- License: mit
- Created: 2020-05-07T18:51:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-20T00:59:53.000Z (almost 5 years ago)
- Last Synced: 2025-01-04T15:30:27.953Z (9 months ago)
- Topics: dictionary, github-actions, swift, swift-package, swift-package-manager, swiftpm, thread-safe, thread-safety, threadsafe
- Language: Swift
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ConcurrentDictionary
[](https://github.com/horothesun/ConcurrentDictionary/blob/master/.github/workflows/ci-linux.yml)
[](https://github.com/horothesun/ConcurrentDictionary/blob/master/.github/workflows/ci-macos.yml)
[](https://codecov.io/gh/horothesun/ConcurrentDictionary)
[](https://swift.org/package-manager/)Thread-safe Swift dictionary.
## Generate Xcode project
```bash
swift package generate-xcodeproj
```## Testing
### macOS
```bash
swift test
```### Docker Linux
IMPORTANT: regenerate Linux test list executing
```bash
swift test --generate-linuxmain
```Execute on base `swift:5.2` image
```bash
docker run --rm \
--volume "$(pwd):/package" \
--workdir '/package' \
swift:5.2 \
/bin/bash -c 'swift test'
```or create a new image based on `Dockerfile` and run it
```bash
docker build --tag concurrent-dictionary .
docker run --rm concurrent-dictionary
```