Skip to main content

Module shutdown

Module shutdown 

Source
Expand description

§Shutdown

§Purpose

Provides utilities for graceful shutdown of the gateway server.

§Scope

This module defines:

  • GracefulShutdown: A struct to manage shutdown signals and coordination.
  • wait_for_signal: A helper to wait for SIGINT/SIGTERM.

Structs§

ShutdownSignal
A future that resolves when a shutdown signal is received.

Functions§

wait_for_signal
Helper function to wait for a shutdown signal.