Skip to content

feat: side effect finalization #1158

@poolcritter

Description

@poolcritter

Describe the feature

it'd be nice to have a method that side-effects can use to be notified when they won't be called (e.g. if a prior side-effect fails)

Additional context

my use-case is shoving a ftapi Transaction into a side-effect, so that it commits when reached but is properly aborted if something goes wrong before then. currently, it's not possible to safely do this as side-effects are not guaranteed to be reached, forcing me to perform side-effects during action execution.

would be willing to implement if this is a reasonable feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions