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

https://github.com/horothesun/concurrentarray

Thread-safe Swift array.
https://github.com/horothesun/concurrentarray

array github-actions swift swift-package swift-package-manager swiftpm thread-safe thread-safety threadsafe

Last synced: 8 months ago
JSON representation

Thread-safe Swift array.

Awesome Lists containing this project

README

          

# ConcurrentArray

[![CI Linux](https://github.com/horothesun/ConcurrentArray/workflows/CI%20Linux/badge.svg)](https://github.com/horothesun/ConcurrentArray/blob/master/.github/workflows/ci-linux.yml)
[![CI macOS](https://github.com/horothesun/ConcurrentArray/workflows/CI%20macOS/badge.svg)](https://github.com/horothesun/ConcurrentArray/blob/master/.github/workflows/ci-macos.yml)
[![codecov](https://codecov.io/gh/horothesun/ConcurrentArray/branch/master/graph/badge.svg?token=22HW3ASZZK)](https://codecov.io/gh/horothesun/ConcurrentArray)
[![SwiftPM](https://img.shields.io/badge/SwiftPM-Compatible-brightgreen.svg)](https://swift.org/package-manager/)

Thread-safe Swift array.

## 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-array .
docker run --rm concurrent-array
```