Array

public extension Array
  • We have to roll our own solution because concurrentPerform will use slowPath if no NSApplication is available

    Declaration

    Swift

    func parallelMap<T>(_ transform: (Element) throws -> T, progress: ((Int) -> Void)? = nil) throws -> [T]