pub async fn try_new<Fut>(
        max_retries: u16,
        init_fn: impl FnMut() -> Fut,
    ) -> Result<Self, ObjectStoreError>
    where
        Fut: Future<Output = Result<S, ObjectStoreError>>,
    {
        Ok(Self {
            inner: Request::New
                .retry(&any::type_name::<S>(), max_retries, init_fn)
                .await?,
            max_retries,
        })
    }
Creates a store based on the provided async initialization closure.
core/lib/object_store/src/retries.rs