[erlang-questions] Mnesia Callbacks?
nx
nx@REDACTED
Sun Mar 22 05:06:03 CET 2015
That worked perfectly. I must have not looked at the docs closely
enough because mnesia:wait_for_tables seems like an obvious function
name.
Thanks, Vance!
On Sat, Mar 21, 2015 at 11:48 PM, Vance Shipley <vances@REDACTED> wrote:
> On Sun, Mar 22, 2015 at 4:22 AM, nx <nx@REDACTED> 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