type
AfterCommitDispatcher
Deliver a hook effect after its document transaction commits.
Dispatchfunc(context.Context, AfterCommitEffect) error- Deliver one effect after its transaction commits.
Returns error A delivery error that cannot roll back committed content.
Example
type InlineDispatcher struct{}
func (InlineDispatcher) Dispatch(
ctx context.Context,
effect ridu.AfterCommitEffect,
) error {
return effect.Run(ctx)
}