Agent.start

You're seeing just the function start, go back to Agent module for more information.
Link to this function

start(fun, options \\ [])

View Source

Specs

start((() -> term()), GenServer.options()) :: on_start()

Starts an agent process without links (outside of a supervision tree).

See start_link/2 for more information.

Examples

iex> {:ok, pid} = Agent.start(fn -> 42 end)
iex> Agent.get(pid, fn state -> state end)
42
Link to this function

start(module, fun, args, options \\ [])

View Source

Specs

start(module(), atom(), [any()], GenServer.options()) :: on_start()

Starts an agent without links with the given module, function, and arguments.

See start_link/4 for more information.