Effect builder function.
block contains the logic the effect should perform and returns its result as an Action
See the documentation of Effect.