Skip to main content

with_consent_timeout

Function with_consent_timeout 

Source
pub async fn with_consent_timeout<F, Fut, T>(
    submit: F,
    timeout: Duration,
) -> Result<Result<T, ConsentOutcome>, VtaError>
where F: Fn() -> Fut, Fut: Future<Output = Result<T, VtaError>>,
Expand description

with_consent with an explicit deadline. Separate so tests do not sleep for the production timeout.