Step

class Step<Context>
extension Step : CustomStringConvertible, Identifiable

The type defining the callback that each closure should conform to

  • Alias to define next callback

    Declaration

    Swift

    typealias Next = SequenceProcessor<Context>.Next
  • The context to associate with this callback

    Declaration

    Swift

    var context: Context?
  • Instance string descriptor

    Declaration

    Swift

    var description: String { get }
  • Execute step action

    • context: The context to associate with execution
    • completion: The completion callback to be called after execution

    Declaration

    Swift

    func execute(context: Context?, completion: Step<Context>.Next?)

    Parameters

    context

    The context to associate with execution

    completion

    The completion callback to be called after execution

  • id

    Callback instances conform to Identifiable; this value comes from the name property if set, otherwise it comes from an interpolated string of the instance in question

    Declaration

    Swift

    var id: String { get }
  • Undocumented

    Declaration

    Swift

    init(context: Context? = nil, name: String? = nil, _ function: ((Context?, Step<Context>.Next?) -> Void)? = nil)
  • The optional name of the Callback in question

    Declaration

    Swift

    var name: String?