---
title: Dispatch Barrier
framework: dispatch
role: collectionGroup
role_heading: API Collection
path: dispatch/dispatch-barrier
---

# Dispatch Barrier

A synchronization point for tasks executing in a concurrent dispatch queue.

## Overview

Overview Use a barrier to synchronize the execution of one or more tasks in your dispatch queue. When you add a barrier to a concurrent dispatch queue, the queue delays the execution of the barrier block (and any tasks submitted after the barrier) until all previously submitted tasks finish executing. After the previous tasks finish executing, the queue executes the barrier block by itself. Once the barrier block finishes, the queue resumes its normal execution behavior.

## See Also

### Task Synchronization

- [DispatchSemaphore](dispatch/dispatchsemaphore.md)
- [Dispatch Semaphore](dispatch/dispatch-semaphore.md)
