connection_with_pool: Execute code with a connection pool

View source: R/connection_pool.R

connection_with_poolR Documentation

Execute code with a connection pool

Description

Convenience wrapper for working with connection pools. Gets or creates a pool and makes it available as pool within the code block.

Usage

connection_with_pool(connection_name, code, ...)

Arguments

connection_name

Character. Name of the connection in settings.yml

code

Expression to evaluate with the pool

...

Additional arguments passed to connection_pool()

Value

The result of evaluating code


framework documentation built on Feb. 18, 2026, 1:07 a.m.