class_docstr: An Application is a factory for Document instances.
  
      
class_docstr_tok: ["An","Application","is","a","factory","for","Document","instances","."]
docstr: Invoked to execute code when the server cleanly exits. (Before
  stopping the server's ``IOLoop``.)
  
  This method calls ``on_server_unloaded`` on each handler, in order,
  with the server context passed as the only argument.
  
  .. warning::
      In practice this code may not run, since servers are often killed
      by a signal.
docstr_tok: ["Invoked","to","execute","code","when","the","server","cleanly","exits",".","(","Before","stopping","the","server","'s","``","IOLoop","``",".",")","This","method","calls","``","on_server_unloaded","``","on","each","handler",",","in","order",",","with","the","server","context","passed","as","the","only","argument",".","..","warning",":",":","In","practice","this","code","may","not","run",",","since","servers","are","often","killed","by","a","signal","."]
code: def on_server_unloaded(self, server_context: ServerContext) -> None:
      """Invoked to execute code when the server cleanly exits. (Before
      stopping the server's ``IOLoop``.)
  
      This method calls ``on_server_unloaded`` on each handler, in order,
      with the server context passed as the only argument.
  
      .. warning::
          In practice this code may not run, since servers are often killed
          by a signal.
  
      """
      for h in self._handlers:
          h.on_server_unloaded(server_context)
  
imports: from __future__ import annotations
  import logging
  from abc import ABCMeta, abstractmethod
  from typing import TYPE_CHECKING, Any, Awaitable, Callable, ClassVar
  from ..core.types import ID
  from ..document import Document
  from ..settings import settings
label_desc: Use image node_id 10 for calling the Application obj's underlying member method code with example usage: obj.on_server_unloaded(server_context) without return types