---
title: Process.DidTerminateMessage
framework: foundation
role: symbol
role_heading: Structure
path: foundation/process/didterminatemessage
---

# Process.DidTerminateMessage

A message the system sends when a task stops operation.

## Declaration

```swift
struct DidTerminateMessage
```

## Overview

Overview Observe this message with the identifier didTerminate, or specify its type directly to the addObserver(of:for:using:) method. The Subject of this message type is Process. This message interoperates with the notification didTerminateNotification. The system notifies observers of the message when the NotificationCenter posts the notification. Similarly, the system notifies observers of the notification when it posts the message.

## Topics

### Creating a message

- [init()](foundation/process/didterminatemessage/init().md)

## Relationships

### Conforms To

- [NotificationCenter.AsyncMessage](foundation/notificationcenter/asyncmessage.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
