Mnesia documentation

Luke Bakken luke@REDACTED
Sat Dec 7 21:34:14 CET 2019


Hi Aaron,

panic/1 exists and is an exported function in the "company" module in
the master branch:

~/development/erlang/otp (master=)
$ find . -type f -name '*.erl' -exec egrep '^panic\(' {} +
./lib/mnesia/doc/src/company.erl:panic(X) -> exit({panic, X}).

This appears to be example code used in the mnesia documentation.

Thanks,
Luke

On Sat, Dec 7, 2019 at 12:21 PM Aaron Pankratz <pankratz.aaron@REDACTED> wrote:
>
> Hi, in the Mnesia documentation has this code in section 4.3:
>
>           case mnesia:wait_for_tables([a, b], 20000) of
>             {timeout,   RemainingTabs} ->
>               panic(RemainingTabs);
>             ok ->
>               synced
>           end.
>
> I get and error, "function panic/1 undefined", when I try to use it.
> What is that panic function?
>
> Best,
> Aaron



More information about the erlang-questions mailing list