Action
-
Represents an action that will do some work when executed with a value of type
Input
, then return zero or more values of typeOutput
and/or fail with an error of typeError
. If no failure should be possible, NoError can be specified for theError
parameter.Actions enforce serial execution. Any attempt to execute an action multiple times concurrently will return an error.
See moreDeclaration
Swift
public final class Action<Input, Output, Error: Swift.Error>
-
The type of error that can occur from Action.apply, where
See moreError
is the type of error that can be generated by the specific Action instance.Declaration
Swift
public enum ActionError<Error: Swift.Error>: Swift.Error