doClose method

  1. @protected
Future<void> doClose()

Template method for actual cleanup logic when the context is closed.

Subclasses can override this to perform specific cleanup tasks such as releasing caches, closing thread pools, or persisting final state.

This is part of Jetleaf – a framework which developers can use to build web applications.

Implementation

@protected
Future<void> doClose() async {
  // Default implementation - subclasses can override
}