Task

async/3

async(module, fun, args)

Spawns a linked process that runs the function fun of module with args concurrently and immediately returns a %Task{} struct as a handle to it.

If the function fails, the task process exits with an error and the calling process exits too.