poolGetConnection method

Future<int> poolGetConnection(
  1. int poolId
)

Obtains a connection from pool poolId. Returns connection ID on success.

Implementation

Future<int> poolGetConnection(int poolId) async {
  final r = await _sendRequest<IntResponse>(
    PoolGetConnectionRequest(_nextRequestId(), poolId),
  );
  return r.value;
}