# OnApplicationStopped constructor

const OnApplicationStopped()

Annotation to mark a method that should run when the application has fully stopped.

This can be used for final cleanup tasks, notifications, or logging that happens after all resources have been released.

The only acceptable method signatures are:

- No-Arg: The method should not accept any arguments.
- One-Arg: The method should accept a single argument of type `ApplicationContext`.

### Example

    class MyApp {
      @OnApplicationStopped()
      void afterStop() {
        print("Application has stopped completely.");
      }

      @OnApplicationStopped()
      void afterStopWithContext(ApplicationContext context) {
        print("Application has stopped completely.");
      }
    }

## Implementation

    const OnApplicationStopped();