pub fn init_network()Expand description
Initialize the FoundationDB network.
This function is safe to call multiple times - only the first call will actually initialize the network, subsequent calls return immediately.
The FoundationDB network can be booted once per process and can never be
restarted: after shutdown_network(), any subsequent call to this function
panics.
Before the process exits, drop all Database and transaction handles and then
call shutdown_network(). Skipping the shutdown can segfault the
FoundationDB client during teardown; calling it while a handle is still alive
can instead block on the network thread join.