closeGracefully method

Future<void> closeGracefully(
  1. HttpServer server
)

Stops server taking new connections. Completes when its open requests are done.

Implementation

Future<void> closeGracefully(HttpServer server) => server.close();