
..
    Copyright (C) 2022-2026 Dimitra Karatza
    Copyright (C) 2022-2026 The STE||AR Group

    SPDX-License-Identifier: BSL-1.0
    Distributed under the Boost Software License, Version 1.0. (See accompanying
    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

.. _modules_finalize_hpx_finalize_api:

-------------
hpx::finalize
-------------

Defined in header :hpx-header:`libs/full/init_runtime/include,hpx/init.hpp`.

See :ref:`public_api` for a list of names and headers that are part of the public
|hpx| API.


See also:

   - :ref:`hpx::disconnect <modules_finalize_hpx_disconnect_api>`

.. doxygenfunction:: hpx::finalize(double shutdown_timeout, double localwait=-1.0, hpx::error_code &ec=throws)
   :project: hpx
.. doxygenfunction:: hpx::finalize(hpx::error_code &ec=throws)
   :project: hpx
