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 -> Any
Parameters
context
the context of the side effect
Return Value
the side effect return value, if applicable