getState method

({int idle, int size})? getState()

Gets the current state of the connection pool.

Returns a record with pool size and idle count, or null on failure.

Implementation

({int size, int idle})? getState() => _backend.poolGetState(_poolId);