Module medea::shutdown[][src]

Graceful shutdown implementation.

Structs

GracefulShutdown

Service which listens incoming OS signals and performs graceful shutdown for all its Subscribers.

Priority

Priority that Subscriber should be triggered to shutdown gracefully with.

ShutdownGracefully

Message that Subscriber is informed with to perform its graceful shutdown.

ShuttingDownError

Error which indicates that process is shutting down at this moment.

Subscriber

Subscriber to GracefulShutdown service, which is notified when graceful shutdown happens.

Functions

subscribe

Subscribes recipient to GracefulShutdown.

unsubscribe

Unsubscribes recipient from GracefulShutdown.