ShutdownHookService

class ShutdownHookService(scope: InjectionScope) : TegralService

A service that automatically calls env.services.stopAll() on the environment when a shutdown hook is received from the JVM.

Constructors

Link copied to clipboard
fun ShutdownHookService(scope: InjectionScope)

Functions

Link copied to clipboard
open suspend override fun start()
Link copied to clipboard
open suspend override fun stop()