refCountForTest property

int get refCountForTest

Test-only: the current outstanding-handle count. Do not use in production code — it exists so tests can assert that use releases its reference (returns to 0) even when the callback throws.

Implementation

static int get refCountForTest => _refCount;