[erlang-questions] Mnesia Callbacks?

Vance Shipley <>
Sun Mar 22 04:48:07 CET 2015


On Sun, Mar 22, 2015 at 4:22 AM, nx <> wrote:
> reset() ->
>   setup(),
>   timer:sleep(3000),
>   seed().

reset() ->
     setup(),
     case mnesia:wait_for_tables([table_name], 3000) of
          ok ->
               seed();
          {timeout, _} ->
               {error, timeout};
          {error, Reason} ->
                {error, Reason}
     end.

-- 
     -Vance


More information about the erlang-questions mailing list