close method

Future<void> close()

Stops the pool: cancels timers and error listeners, disposes every worker and closes errors. Intentionally closed workers are never restarted. Safe to call twice.

Implementation

Future<void> close() => _closeFuture ??= _close();