Skip to content

orchetect/OTAtomics

Repository files navigation

OTAtomics

CI Build Status Platforms - macOS 10.10+ | iOS 9+ | tvOS 9+ | watchOS 2+ | visionOS 1+ Swift 5.3-6.0 Xcode 12-16 License: MIT

Multi-platform Swift thread-safe atomics library.

The library has full unit test coverage and is actively used in production.

Installation: Swift Package Manager (SPM)

Dependency within an Application

  1. Add the package to your Xcode project using Swift Package Manager
    • Select File → Swift Packages → Add Package Dependency
    • Add package using https://github.com/orchetect/OTAtomics as the URL.
  2. Import the module in your *.swift files where needed.
    import OTAtomics

Dependency within a Swift Package

  1. In your Package.swift file:

    dependencies: [
        .package(url: "https://github.com/orchetect/OTAtomics", from: "1.0.0")
    ],
  2. Using internal import prevents the methods and properties in OTOperations from being exported to the consumer of your SPM package.

    internal import OTAtomics

Documentation

Most methods are implemented as category methods so they are generally discoverable.

All methods have inline help explaining their purpose and basic usage examples.

Author

Coded by a bunch of 🐹 hamsters in a trenchcoat that calls itself @orchetect.

License

Licensed under the MIT license. See LICENSE for details.

Community & Support

Please do not email maintainers for technical support. Several options are available for issues and questions:

  • Questions and feature ideas can be posted to Discussions.
  • If an issue is a verifiable bug with reproducible steps it may be posted in Issues.

Contributions

Contributions are welcome. Posting in Discussions first prior to new submitting PRs for features or modifications is encouraged.

About

Multi-platform Swift thread-safe atomics library

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages