
..
    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_disconnect_api:

---------------
hpx::disconnect
---------------

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::finalize <modules_finalize_hpx_finalize_api>`

.. doxygenfunction:: hpx::disconnect(double shutdown_timeout, double localwait=-1.0, hpx::error_code &ec=throws)
   :project: hpx
.. doxygenfunction:: hpx::disconnect(hpx::error_code &ec=throws)
   :project: hpx
.. doxygenfunction:: hpx::disconnect([[maybe_unused]] double shutdown_timeout, [[maybe_unused]] double localwait, [[maybe_unused]] error_code &ec)
   :project: hpx
