do_initialization() example

Peter J Etheridge petergi@REDACTED
Fri Jan 1 06:32:22 CET 2021


Dear Fellow Erlangers,
In proc_lib module this example includes a function in the case
statement;

	-module(my_proc). -export([start_link/0]). -export([init/1]).
start_link() -> proc_lib:start_link(my_proc, init, [self()]).
init(Parent) -> case do_initialization() of ok ->
proc_lib:init_ack(Parent, {ok, self()}); {error, Reason} ->
exit(Reason) end, loop().

could someone kindly direct me to an example of a

do_initialization()

function?

thank you in advance,

Peter


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210101/fe173550/attachment.htm>


More information about the erlang-questions mailing list