setTimeout method

Future<void> setTimeout(
  1. int timeoutSeconds
)

Set timeout for getting a connection from the pool

Implementation

Future<void> setTimeout(int timeoutSeconds) async {
  _ensureNotDisposed();

  final result = _dpiOracle.dpiPool_setTimeout(_poolPtr.value, timeoutSeconds);

  if (result == DPI_FAILURE) {
    throw OraclePoolException('Failed to set pool timeout');
  }
}