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 relay’s per-tenant consumers use this so module-side consumers resolve the tenant database through their rpool() (ADR-0029 pool law).