<html><body style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 12px;"><div>Dear Fellow Erlangers,</div><div><br /></div><div>In proc_lib module this example includes a function in the case statement;</div><div><br /></div><div> <pre><span class="hljs-keyword">-module</span><span class="hljs-params">(my_proc)</span>.
<span class="hljs-keyword">-export</span><span class="hljs-params">([start_link/<span class="hljs-number">0</span>])</span>.
<span class="hljs-keyword">-export</span><span class="hljs-params">([init/<span class="hljs-number">1</span>])</span>.
<span class="hljs-function"><span class="hljs-title">start_link</span><span class="hljs-params">()</span> -></span>
proc_lib:start_link(my_proc, init, [self()])
<span class="hljs-function"><span class="hljs-title">init</span><span class="hljs-params">(Parent)</span> -></span>
<span class="hljs-keyword">case</span> do_initialization() <span class="hljs-keyword">of</span>
ok ->
proc_lib:init_ack(Parent, {ok, self()});
{error, Reason} ->
exit(Reason)
<span class="hljs-keyword">end</span>,
loop().<br /><br /><br />could someone kindly direct me to an example of a<br /><br />do_initialization()<br /><br />function?<br /><br />thank you in advance,<br /><br />Peter<br /></pre></div><br /><br /></body></html>