View Source Flamel.Task (flamel v1.10.0)
Provides a few convenience functions for common Task use cases Alpha
Summary
Functions
Execute a function asynchronously Alpha
Executes a task in a background process Alpha
Execute a function after a specified delay interval. Alpha
Execute a stream asynchronously Alpha
Functions
Execute a function asynchronously Alpha
Examples
ie> task = Flamel.Task.async(fn -> IO.puts("Look at me!") end)
Executes a task in a background process Alpha
Execute a function after a specified delay interval. Alpha
Examples
ie> task = Flamel.Task.delay(1_000, fn -> IO.puts("I am 1 second delayed") end)
Execute a stream asynchronously Alpha
Examples
ie> task = Flamel.Task.stream(["one", "two"], fn item -> IO.puts(item) end)