Running Example of Linn
rebar3 compile
rebar3 shell
If you look at the src/linn_example.erl
file, you will see that there is a add_new_pool/0
function. This function is called by the linn:add_pool
.
```erlang
1> linn_example:add_new_pool().
{ok,<0.192.0>}
2> linn_example:get_pid().
{ok,<0.204.0>}
If you look at the src/linn_example_sup.erl
file, You will see that there is a linn:add_pool
function supervisor init/1
.
For get new process linn_example_sup:get_pid/0
is going to use.
3> linn_example_sup:get_pid().
{ok,<0.198.0>}