Task.start
start
, go back to Task module for more information.
Specs
Starts a task.
fun
must be a zero-arity anonymous function.
This should only used when the task is used for side-effects (like I/O) and you have no interest on its results nor if it completes successfully.
If the current node is shutdown, the node will terminate even
if the task was not completed. For this reason, we recommend
to use Task.Supervisor.start_child/2
instead, which allows
you to control the shutdown time via the :shutdown
option.
Specs
Starts a task.
This should only used when the task is used for side-effects (like I/O) and you have no interest on its results nor if it completes successfully.
If the current node is shutdown, the node will terminate even
if the task was not completed. For this reason, we recommend
to use Task.Supervisor.start_child/2
instead, which allows
you to control the shutdown time via the :shutdown
option.