Latest 1.0
Homepage https://github.com/akpatrick/PASynchronizedDictionary
License MIT
Platforms ios 10.0
Authors

Build Status
codecov
doccov
Version
Platform

Installation

PASynchronizedDictionary is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'PASynchronizedDictionary'

Usage

Import

First you need to import the library

import PASynchronizedDictionary

Initialization

When initializing a synchronized dictionary you have the option to pass a custom queue and an existing dictionary.

let customQueue = DispatchQueue(label: "io.customQueue", qos: .userInitiated, attributes: .concurrent)
let dict = [String: Int]()

// Initialize default synchronized dictionary
let synchronizedDict = PASynchronizedDictionary<Int>()

// Initialize with a custom queue
let synchronizedDict = PASynchronizedDictionary<Int>(queue: customQueue)

// Initialize with an existing dictionary
let synchronizedDict = PASynchronizedDictionary<Int>(dict: dict)

// Initialize with both a custom queue and an existing dictionary
let synchronizedDict = PASynchronizedDictionary<Int>(queue: customQueue, dict: dict) 

Documentation

Documentation for the project can be found here

Author

Patrick Akoury, [email protected]

License

PASynchronizedDictionary is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "PASynchronizedDictionary",
    "version": "1.0",
    "summary": "PASynchronizedDictionary, is thread safe dictionary.",
    "description": "PASynchronizedDictionary implements a dictionary trying to mimic as close as possible the SynchronizedMap in JAVA. It is using the GCD with a custom queue to make it thread safe.",
    "homepage": "https://github.com/akpatrick/PASynchronizedDictionary",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Patrick Akoury": "[email protected]"
    },
    "swift_version": "4.2",
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/akpatrick/PASynchronizedDictionary.git",
        "tag": "1.0"
    },
    "source_files": "PASynchronizedDictionary/**/*.swift"
}

Pin It on Pinterest

Share This