sheharyarn / memento

Simple + Powerful interface to the Mnesia Distributed Database 💾
http://hexdocs.pm/memento/
MIT License
734 stars 23 forks source link

Implement wrapper for wait_for_tables #27

Closed DaniruKun closed 3 years ago

DaniruKun commented 3 years ago

This PR implements a simple wrapper around the mnesia function wait_for_tables.

https://erlang.org/doc/man/mnesia.html#wait_for_tables-2

sheharyarn commented 3 years ago

Hey @DaniruKun. Thanks for sending in the PR, I appreciate you trying to contribute to Memento!

But a wrapper for wait_for_tables was already implemented at Memento.wait/2 (because it's used with schemas too). But I also understand that it would not be the first place you'd look for it.

So I've moved the implementation to Memento.Table.wait/2 in 955d37cf4a85ebbfe3cdba6c5562e80e3c2390fe while still keeping a delegate to it in the root module. Please upgrade to v0.3.2 for the recent changes as well as some minor improvements.