Skip to content

EntropyEngine::Core::Concurrency::NodeAddedEvent

EntropyEngine::Core::Concurrency::NodeAddedEvent

Section titled “EntropyEngine::Core::Concurrency::NodeAddedEvent”

Fired when a new task joins your workflow. More…

#include <WorkGraphEvents.h>

Inherits from EntropyEngine::Core::Concurrency::WorkGraphEvent

Name
NodeAddedEvent(const WorkGraph * g, NodeHandle n)
Name
NodeHandlenode
The newly added node.

Public Functions inherited from EntropyEngine::Core::Concurrency::WorkGraphEvent

Name
WorkGraphEvent(const WorkGraph * g)

Public Attributes inherited from EntropyEngine::Core::Concurrency::WorkGraphEvent

Name
std::chrono::steady_clock::time_pointtimestamp
When this event was created.
const WorkGraph *graph
Which graph emitted this event.
struct EntropyEngine::Core::Concurrency::NodeAddedEvent;

Fired when a new task joins your workflow.

Useful for dynamic graph visualization or tracking graph construction. Note this fires immediately when addNode() is called, before any dependencies are established.

eventBus->subscribe<NodeAddedEvent>([&nodeCount](const auto& event) {
nodeCount++;
LOG_DEBUG("Graph now has {} nodes", nodeCount);
});
inline NodeAddedEvent(
const WorkGraph * g,
NodeHandle n
)
NodeHandle node;

The newly added node.


Updated on 2026-01-26 at 17:14:35 -0500