---
title: "actionWasCancelled(_:reason:)"
framework: tabletopkit
role: symbol
role_heading: Instance Method
path: "tabletopkit/tabletopgame/observer/actionwascancelled(_:reason:)"
---

# actionWasCancelled(_:reason:)

Called once for each action which was later cancelled from the shared network table state after being confirmed due to the action of either a jumpToBookmark operation or due to an interaction that added it or an action it depended on being cancelled. actionWasCancelled callbacks are also reliably ordered with actionWasConfirmed and actionWasRolledBack callbacks.

## Declaration

```swift
func actionWasCancelled(_ action: some TabletopAction, reason: TabletopGame.ActionCancellationReason)
```
