A task is like a process that runs a function and returns a callback in case of success and an other one in case of error.
The result of runned function is passed as argument to the success callback and then it is dispatched with the name and a payload.
For example it is possible to catch when a task is started and is completed in order to visualize a spinner
A task is like a process that runs a function and returns a callback in case of success and an other one in case of error.
The result of runned function is passed as argument to the success callback and then it is dispatched with the name and a payload.
For example it is possible to catch when a task is started and is completed in order to visualize a spinner