An example that demonstrates how to publish data asynchronously.
Name |
Example_10_PublishingAsynchronously |
Description |
This example demonstrates how to publish data to a stream asynchronously. This is a variation of Example 2 that produces very similar output, since the difference is not in the data but in how the data is published. In particular, this example shows how to define and register a listener. Note that the actual publish method is the same for both synchronous and asynchronous publishing. |
Notable Classes and Methods |
publisher.setOption Publisher.Listener publisher.setListener |