Deno.Listener.close - Deno documentation
method Deno.Listener.close
Listener.close(): void

Close closes the listener. Any pending accept promises will be rejected with errors.

Return Type

void