Class ShutdownPolicy
Defined in File shutdown.h
Class Documentation
-
class ShutdownPolicy
Declaration:
finalOwns the single host authority.
Reset prevents new entry and acknowledges running callbacks (except self-reset); withdrawal cancels an unresolved request.
Public Functions
-
ShutdownPolicy() = default
-
~ShutdownPolicy()
-
ShutdownPolicy(ShutdownPolicy&&) noexcept
-
ShutdownPolicy &operator=(ShutdownPolicy&&) noexcept
-
ShutdownPolicy(const ShutdownPolicy&) = delete
-
ShutdownPolicy &operator=(const ShutdownPolicy&) = delete
-
void reset() noexcept
Withdraw authority, prevent fresh callback entry and acknowledge entered callbacks except self-reset.
An unresolved admitted ordinary request is cancelled. Owned callback captures stay pinned during invocation. Reset before destroying borrowed policy/UI targets; default/moved-from handles are inert.
-
bool active() const noexcept
Declaration:
[[nodiscard]]
-
ShutdownPolicy() = default