         return task
     }
     
-    class func race(tasks: HNTask[]) -> HNTask {
+    class func race(tasks: [HNTask]) -> HNTask {
         let task = HNTask()
         let lock = NSObject()
         var completed = false

                objc_sync_exit(lock)
                
                if doResolve {
                    task.complete(result: results, error: nil)
                }
                return nil
            }

                    objc_sync_exit(lock)
                    
                    if doResolve {
                        let resultValue: Any = results
                        task.complete(result: resultValue, error: nil)
                    }
                }
                return nil
