What is the use of on_load() in Erlang programming?
Ask by Tarun Kumar
Updated 16 Sep 2020
If the return value is not an atom then a warning error report will be sent to the error logger. and until the on_load() function returns ok the system will not terminated.
Syntax:
-on_load(Function_Name/0).