|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A Bridge's instance subscriptions: at most one callback per (binding, result type), matched at publish time on the binding's current instance, so a re-pointed handler's subscriptions follow it; entries whose binding is gone are pruned. More...
#include <any>#include <atomic>#include <cstddef>#include <functional>#include <memory>#include <typeindex>#include <utility>#include <vector>#include "../executor.hpp"#include "../strand.hpp"Go to the source code of this file.
A Bridge's instance subscriptions: at most one callback per (binding, result type), matched at publish time on the binding's current instance, so a re-pointed handler's subscriptions follow it; entries whose binding is gone are pruned.
Templated on the binding type so this header does not depend on bridge.hpp, which defines HandlerBinding inline: the body touches the binding's currentId only inside member functions, instantiated once the type is complete.
Definition in file subscription_registry.hpp.