| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | package functions |
| 4 | |
| 5 | // TerminalFinalizer routes terminal response emission for a transaction UID. |
| 6 | type TerminalFinalizer func(uid, source string, emit func()) bool |
| 7 | |
| 8 | // DirectTerminalFinalizer emits a terminal response without manager-level |
| 9 | // deduplication. |
| 10 | func DirectTerminalFinalizer(_ string, _ string, emit func()) bool { |
| 11 | if emit == nil { |
| 12 | return false |
| 13 | } |
| 14 | emit() |
| 15 | return true |
| 16 | } |