---
title: "notify(qos:flags:queue:execute:)"
framework: dispatch
role: symbol
role_heading: Instance Method
path: "dispatch/dispatchworkitem/notify(qos:flags:queue:execute:)"
---

# notify(qos:flags:queue:execute:)

Schedules the execution of the specified work item, with the specified quality-of-service, after the completion of the current work item.

## Declaration

```swift
func notify(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], queue: DispatchQueue, execute: @escaping () -> Void)
```

## Parameters

- `qos`: The quality-of-service class to use when prioritizing the work item’s execution. For a list of possible values, see doc://com.apple.dispatch/documentation/Dispatch/DispatchQoS.
- `flags`: Configuration flags for the work item. For a list of possible values, see doc://com.apple.dispatch/documentation/Dispatch/DispatchWorkItemFlags.
- `queue`: The queue on which to execute the work item in the execute parameter.
- `execute`: The work item to execute after the completion of the current work item.

## See Also

### Adding a Completion Handler

- [notify(queue:execute:)](dispatch/dispatchworkitem/notify(queue:execute:).md)
