Action

  • Represents an action that will do some work when executed with a value of type Input, then return zero or more values of type Output and/or fail with an error of type Error. If no failure should be possible, NoError can be specified for the Error parameter.

    Actions enforce serial execution. Any attempt to execute an action multiple times concurrently will return an error.

    See more

    Declaration

    Swift

    public final class Action<Input, Output, Error: Swift.Error>
  • The type of error that can occur from Action.apply, where Error is the type of error that can be generated by the specific Action instance.

    See more

    Declaration

    Swift

    public enum ActionError<Error: Swift.Error>: Swift.Error