Skip to main content
interface Deno.Server
Unstable

Properties

finished: Promise<void>

A promise that resolves once server finishes - eg. when aborted using the signal passed to ServeOptions.signal.

Methods

ref(): void

Make the server block the event loop from finishing.

Note: the server blocks the event loop from finishing by default. This method is only meaningful after .unref() is called.

unref(): void

Make the server not block the event loop from finishing.