 }
 
 
-
-
-
-
-
-

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

        return self
    }

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