run<R> abstract method

Future<R> run<R>(
  1. Future<R> action(
    1. SqlConnection
    )
)

Leases one connection until action completes or throws.

Do not retain the connection or start unawaited work beyond the callback.

Implementation

Future<R> run<R>(Future<R> Function(SqlConnection) action);