SynchronizedArray

class SynchronizedArray<Element>

A thread-safe array.

  • Undocumented

    Declaration

    Swift

    public init()
  • Undocumented

    Declaration

    Swift

    var synchronizedArray: [Element] { get }
  • Undocumented

    Declaration

    Swift

    var count: Int { get }
  • Undocumented

    Declaration

    Swift

    func append(_ element: Element)
  • Undocumented

    Declaration

    Swift

    func clear()
  • Undocumented

    Declaration

    Swift

    subscript(index: Int) -> Element { get }

Available where Element: Comparable

  • Undocumented

    Declaration

    Swift

    func index(_ element: Element) -> Int?
  • Undocumented

    Declaration

    Swift

    func contains(_ element: Element) -> Bool