getWorkerPoolStats abstract method

  1. @override
Future<AsyncWorkerPoolStats?> getWorkerPoolStats()
override

Returns Dart-side worker-pool statistics when the underlying connection runs in async mode (P95 latency, fallbacks to blocking, queue depth, etc.). Returns null in sync mode where no worker pool exists.

Bridges the otherwise-internal AsyncNativeOdbcConnection. getWorkerPoolStats() so consumers wired to IOdbcService / IAdminService can pull observability numbers without crossing the abstraction boundary. The method is infallible by design: "stats not available" is normal in sync mode and isn't an error.

Implementation

@override
Future<AsyncWorkerPoolStats?> getWorkerPoolStats();