Skip to content

STRUCT

AnyWorkflowAction

A type-erased workflow action.

The AnyWorkflowAction type forwards apply to an underlying workflow action, hiding its specific underlying type.

Properties

base

The underlying type-erased WorkflowAction

isClosureBased

True iff the underlying apply implementation is defined by a closure vs wrapping a WorkflowAction conformance

Methods

init(_:)

Creates a type-erased workflow action that wraps the given instance.

  • Parameter base: A workflow action to wrap.

init(_:fileID:line:)

Creates a type-erased workflow action with the given apply implementation.

  • Parameter apply: the apply function for the resulting action.

apply(toState:)