         return self
     }
 
-
     //MARK: Others
-    public func applyIteration(iteration:UInt, toBlock block:(i:UInt) -> ()) {
+    public func applyIteration(iteration:Int, toBlock block:(i:Int) -> ()) {
         dispatch_apply(iteration, dispatchQueue(),block);
         
     }

}









            ), dispatchQueue(), block)
        return self
    }
    public func dispatchWithBarrier(block:() -> Void) -> Queue {
        dispatch_barrier_async(dispatchQueue(), block)
        return self
    }
    public func dispatchWithBarrier(block:() -> Void, wait:Bool) -> Queue {
        let q = dispatchQueue()
        if wait == true {
            dispatch_barrier_sync(q, block) //TODO: prevent deadlock
