Hi,
I have a very simple question: is it possible to make a subscription handler that will be called regardless of the message type?
Something like this:
so_subscribe(board_).event([](any_message_t m){
// do something
});
// ...
send<int>(board_, 5); // handler called
send<MyType>(board_, MyType{}); // handler called
// ...
What's the recommended practice here?
Thanks.
Hi,
I have a very simple question: is it possible to make a subscription handler that will be called regardless of the message type?
Something like this:
What's the recommended practice here?
Thanks.