Welcome to the new CppUtils documentation!
CppUtils::Thread::AsyncEventDispatcher
CLASSPublic types
Section titled “Public types”SubscriptionIdentifier
Section titled “SubscriptionIdentifier”using CppUtils::Thread::AsyncEventDispatcher::SubscriptionIdentifier = Execution::EventDispatcher::SubscriptionIdentifier;Public methods & functions
Section titled “Public methods & functions”explicit AsyncEventDispatcher::AsyncEventDispatcher( std::size_t numberThreads = std::ranges::max(1uz, static_cast<std::size_t>(std::thread::hardware_concurrency())), std::function<void(std::exception_ptr)> onError = nullptr, std::function<void()> finally = nullptr);template <String::Hasher eventName = Type::Hash{}, class... Args>auto AsyncEventDispatcher::emit(const Args&... args) -> void;template <class... Args>auto AsyncEventDispatcher::emit(Type::Hash eventName, Args&&... args) -> void;