---
title: DispatchSync
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iodispatchqueue/dispatchsync
---

# DispatchSync

Schedule a block for synchronous execution on the current queue.

## Declaration

```occ
void DispatchSync(IODispatchBlock block);
```

## Parameters

- `block`: The block to execute on the queue.

## Discussion

Discussion This method schedules the block for execution on the queue and waits for it to complete before returning. The system retains the queue until the block completes.

## See Also

### Executing a Task Synchronously

- [DispatchSync_f](driverkit/iodispatchqueue/dispatchsync_f.md)
