0

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]() {
              _signal(data);
           });
        }
     }

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy