---
title: "notify_cancel(_:)"
framework: Darwin Notify
role: symbol
role_heading: Function
path: "darwinnotify/notify_cancel(_:)"
---

# notify_cancel(_:)

## Declaration

```swift
func notify_cancel(_ token: Int32) -> UInt32
```

## Parameters

- `token`: (Input) notification token

## Return Value

Return Value Returns status.

## Discussion

Discussion Cancel notification and free resources associated with a notification token. Mach ports and file descriptor associated with a token are released (deallocated or closed) when all registration tokens associated with the port or file descriptor have been cancelled.

## See Also

### Miscellaneous

- [notify_check(_:_:)](darwinnotify/notify_check(_:_:).md)
- [notify_get_state(_:_:)](darwinnotify/notify_get_state(_:_:).md)
- [notify_post(_:)](darwinnotify/notify_post(_:).md)
- [notify_register_check(_:_:)](darwinnotify/notify_register_check(_:_:).md)
- [notify_register_dispatch(_:_:_:_:)](darwinnotify/notify_register_dispatch(_:_:_:_:).md)
- [notify_register_mach_port(_:_:_:_:)](darwinnotify/notify_register_mach_port(_:_:_:_:).md)
- [notify_register_signal(_:_:_:)](darwinnotify/notify_register_signal(_:_:_:).md)
- [notify_resume(_:)](darwinnotify/notify_resume(_:).md)
- [notify_set_state(_:_:)](darwinnotify/notify_set_state(_:_:).md)
- [notify_suspend(_:)](darwinnotify/notify_suspend(_:).md)
