What is equivalent of "dispatch_apply" in Swift 3?
<p>I have been searching for an equivalent of dispatch_apply in swift3. Help me please</p>

<p>convert </p>

<pre><code>    let queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
    dispatch_apply(2, queue) { (index)  in
    }
</code></pre>