Skip to content

Event/Action #50

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions