40 bool Installed() const noexcept {
return static_cast<bool>(_hook); }
47 void RemoveListener();
50 std::function<Result<Subscription>()> _install;
bool Installed() const noexcept
LazyHook & operator=(const LazyHook &)=delete
LazyHook(std::string name, std::function< Result< Subscription >()> install)
LazyHook(const LazyHook &)=delete
EventLifecycle MakeLifecycle()
int ListeningEvents() const noexcept
Owns one registration and releases it on destruction.
std::expected< T, Error > Result
Starting and stopping an Event source, driven by whether anything is listening.