Http module

shutdown

procedureextensionexperimentalSource

Asks the servers started by serve to stop: they stop accepting and finish the requests in progress. Safe to call from any thread; serve returns once they are done.

Example
// From a signal handler's polling loop, a timer thread or an admin route:
app: App;
shutdown(*app);

This one is only checked to compile, not run.

shutdown :: (app: *App)

Parameters

app: *App

See also