shutdown method Null safety

Future<void> shutdown()

Shuts this server down.

The server will continue to handle ongoing requests, but enqueued or new requests will be rejected.

This future returns after all client connections have been closed.

Implementation

Future<void> shutdown();