|
SObjectizer
5.5
|
Sometimes it can be necessary to check the presense of a subscription. For example there can be an observer agent which receives messages with mboxes inside. This observer must make subscription for messages from that mbox:
The problem is: if start_listen contain a mbox to which the observer is already subscribed the an exception will be throw in in so_subscribe.
Since v.5.5.19.5 there is a way to check presence of subscription. This check can be done by so_5::agent_t::so_has_subscription method:
Method so_has_subscription has several formats:
Class so_5::state_t now also has a couple of has_subscription methods which allows to check the presence of a subscription:
1.8.14