interface
AfterCommitDispatcher
Choose how hooks run after their transaction commits.
Properties
| Property | Type | Description |
|---|---|---|
Dispatch | func(context.Context, | Deliver one effect after its transaction commits. |
Returns
A delivery error that cannot roll back committed content.
errorHow it works
Without a custom dispatcher, AfterCommit hooks run synchronously. A dispatcher must call effect.Run or arrange for it to run; a Go callback is not itself a durable task.
Full signature
type AfterCommitDispatcher interface {
Dispatch(context.Context, AfterCommitEffect) error
}