Skip to content

Event/Action #50

@dexterurbane

Description

@dexterurbane

We used to be able to do stuff like this:

bus->voltageUpdated().addAction([&](){
    if (abs(bus->voltage()(0)) < threshold)
    appliance->setOn(false);});

With changes that occurred some time ago, this becomes harder. For example, the action currently needs an owner, or it will go out of scope and deregister from its event.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions