 }
 
 extension PrimitiveSequence where Trait == SingleTrait {
-
   static func fromSinglesToSingleOfArray(_ singles: [Single<Element>]) -> Single<[Element]> {
     Observable
       .merge(singles.map { $0.asObservable() })

      defer { condition.unlock() }
      trigger = true
      condition.broadcast()
    }, onError: { error in
      condition.lock()
      defer { condition.unlock() }
      trigger = true

    onError: ((Swift.Error) -> Void)? = nil
  ) throws {
    var trigger = false
    var err: Swift.Error?

    let condition = NSCondition()

