50 _cleanup = std::exchange(
other._cleanup,
nullptr);
61 if (
auto cleanup = std::exchange(_cleanup,
nullptr))
71 std::move_only_function<
void()> _cleanup;
Owns one registration and releases it on destruction.
Subscription & operator=(Subscription &&other) noexcept
Subscription(std::move_only_function< void()> cleanup)
Subscription(const Subscription &)=delete
Subscription & operator=(const Subscription &)=delete
Subscription(Subscription &&other) noexcept
static std::string ReadFile(const std::filesystem::path &path)