isUsable property

bool get isUsable

True while the pool accepts work: at least one worker is ready and the pool is neither failed nor closed.

Implementation

bool get isUsable =>
    !_closing && !_failed && _slots.any((slot) => slot.ready);