Skip to main content

connect_with_retry_using

Function connect_with_retry_using 

Source
pub async fn connect_with_retry_using<T, F, Fut>(
    connect_options: PgConnectOptions,
    max_attempts: u32,
    delays_ms: &[u64],
    connector: F,
) -> DatabaseResult<T>
where T: Send, F: Fn(PgConnectOptions) -> Fut + Send + Sync, Fut: Future<Output = Result<T, Error>> + Send,