Structures

The following structures are available globally.

LifecycleHandler

Stateful Lifecycle Handlers

ServiceLifecycle

  • ServiceLifecycle provides a basic mechanism to cleanly startup and shutdown the application, freeing resources in order before exiting. By default, also install shutdown hooks based on Signal and backtraces.

    See more

    Declaration

    Swift

    public struct ServiceLifecycle
    extension ServiceLifecycle: LifecycleTasksContainer