ensureReady method

void ensureReady()

Throws a StateError unless the cache can be acted on now: not while it is changing principal, and not once the inspector is detached. A caller that starts work it does not wait for checks this first, so a refusal reaches it instead of being lost with the work.

Implementation

void ensureReady() => _ready();