Function tor_hsservice::netdir::wait_for_netdir

source ยท
pub(crate) async fn wait_for_netdir(
    provider: &dyn NetDirProvider,
    timeliness: Timeliness
) -> Result<Arc<NetDir>, NetdirProviderShutdown>
Expand description

Get a NetDir from provider, waiting until one exists.

TODO: perhaps this function would be more generally useful if it were not here?