Executes an asynchronous action with options for handling loading, error, and cancellation.
The data type returned by the action.
The payload type passed to the action.
The action function to execute.
Optional parameters for customizing behavior.
Executes an asynchronous action with options for handling loading, error, and cancellation.