             _ = tasks.removeAtIndex(0) //better way?
         }
     }
-    
+
     //
     // remove all remaining tasks
     //
     public func removeAll() {
         tasks.removeAll(keepCapacity: false)
     }
-    
+
     //
     // count of the tasks left to execute
     //
     public var count: Int {
         return tasks.count
     }
-    
+
     //
     // re-run the current task
     //
     public func retry(delay: Double = 0) {
         assert(maximumNumberOfActiveTasks==1, "You can call retry() only on serial queues")
-        
+
         tasks.insert(currentTask!, atIndex: 0)
         currentTask = nil
-        
+
         self._delay(seconds: delay) {
             self.numberOfActiveTasks--
             self._runNextTask(self.lastResult)

        }
    }]
}


            objc_sync_exit(self)
        }
    }

    //
    // skip the next task
    //
