Bienvenue sur la nouvelle documentation de CppUtils !
CppUtils::Thread::AsyncEventDispatcher
CLASSTypes publics
Section intitulée « Types publics »SubscriptionIdentifier
Section intitulée « SubscriptionIdentifier »using CppUtils::Thread::AsyncEventDispatcher::SubscriptionIdentifier = Execution::EventDispatcher::SubscriptionIdentifier;Méthodes et fonctions publiques
Section intitulée « Méthodes et fonctions publiques »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;