async def shutdown_executors(app: Application):
    '\n    Attempt to close the `ThreadPoolExecutor` and `ProcessPoolExecutor`.\n\n    :param app: the application object\n    '
    try:
        app['executor'].shutdown(wait=True)
    except KeyError:
        pass
    try:
        app['process_executor'].shutdown(wait=True)
    except KeyError:
        pass
Attempt to close the `ThreadPoolExecutor` and `ProcessPoolExecutor`.

:param app: the application object
async def shutdown_executors(app: Application):
    '\n    Attempt to close the `ThreadPoolExecutor` and `ProcessPoolExecutor`.\n\n    :param app: the application object\n    '
    try:
        app['executor'].shutdown(wait=True)
    except KeyError:
        pass
    try:
        app['process_executor'].shutdown(wait=True)
    except KeyError:
        pass