Skip to main content

with_pool_scope

Function with_pool_scope 

Source
pub async fn with_pool_scope<F: Future<Output = O>, O>(
    pool: PgPool,
    fut: F,
) -> O
Expand description

Run a future with a pool bound as this module’s request pool — the host verdict dispatcher and relay consumers use this so module-side service calls resolve the caller’s database through rpool() (ADR-0029 pool law).