Task

async/1

async(fun)

Spawns a linked process that runs fun concurrently and immediately returns a %Task{} struct as a handle to it.

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