AnySideEffect
public protocol AnySideEffect : Dispatchable
Type erasure for SideEffect and ReturningSideEffect
-
Block that implements the logic of the side effect.
Throws
if the logic has an error. The related promise will be rejectedDeclaration
Swift
func anySideEffect(_ context: AnySideEffectContext) throws -> AnyParameters
contextthe context of the side effect
Return Value
the side effect return value, if applicable
View on GitHub
AnySideEffect Protocol Reference