Skip to content

EntropyEngine::Core::Concurrency::DependencyAddedEvent

EntropyEngine::Core::Concurrency::DependencyAddedEvent

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

Fired when you wire two nodes together. More…

#include <WorkGraphEvents.h>

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

Name
DependencyAddedEvent(const WorkGraph * g, NodeHandle f, NodeHandle t)
Name
NodeHandleto
The dependent node (child).
NodeHandlefrom
The prerequisite node (parent).

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::DependencyAddedEvent;

Fired when you wire two nodes together.

This event captures the moment a dependency is established. The ‘from’ node must complete before the ‘to’ node can run. Great for building visual representations of your workflow structure.

// Build a dependency graph visualization
eventBus->subscribe<DependencyAddedEvent>([&graphViz](const auto& event) {
graphViz.addEdge(
event.from.getData()->name,
event.to.getData()->name
);
});
inline DependencyAddedEvent(
const WorkGraph * g,
NodeHandle f,
NodeHandle t
)
NodeHandle to;

The dependent node (child).

NodeHandle from;

The prerequisite node (parent).


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