ThreadSafeArrayStore
Thread-safe array like structure
final class ThreadSafeArrayStore<Value>
Thread-safe array like structure
final class ThreadSafeArrayStore<Value>
import Basics
init(_ seed: [Value] = [])
var count: Int { get }
var isEmpty: Bool { get }
subscript(index: Int) -> Value? { get }
@discardableResult func append(_ item: Value) -> Int
@discardableResult func append(contentsOf items: [Value]) -> Int
@discardableResult func clear() -> [Value]
func compactMap<NewValue>(_ transform: (Value) throws -> NewValue?) rethrows -> [NewValue]
func get() -> [Value]
func map<NewValue>(_ transform: (Value) -> NewValue) -> [NewValue]
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Sendable
protocol Escapable