Skip to main content

shutdown_network

Function shutdown_network 

Source
pub fn shutdown_network()
Expand description

Shut down the FoundationDB network.

Call this once, after dropping all Database and transaction handles, before the process exits. Not stopping the network can segfault the client during teardown. The network can never be restarted afterwards: any subsequent call to init_network() will panic. Stopping the network joins the network thread, which can block indefinitely if a handle or in-flight transaction is still alive.