stopAll method

Future<void> stopAll(
  1. Duration timeout
)

Stop every isolate gracefully: each stops taking connections, lets open requests finish (up to timeout) and runs shutdown() of its providers. Isolates still busy after that are killed.

Implementation

Future<void> stopAll(Duration timeout) async {
  await stopServing(timeout);
  killAll();
}