How can I understand this code

      * Publish data to a channel.  This data is *copied* on publish.
      * @param data - the data to publish
     void publish(const Data& data) {
        if (has_subscribers()) {
           // this will copy data into the lambda
           ios_ptr->post([this, data]() {

I do not know after this call: _signal(data);, where is call it?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.