ether.sync(topic='prepare_trial'), then later results = ether.wait_for_sync(topic='prepare_trial')
The idea here is that we publish to a topic and then setup a subscribe reply topic. We already know how many subscribers to this topic there are, so we wait until all of them have published to the reply topic.
The two options above are non-block and blocking versions.
ether.sync(topic='prepare_trial'), then laterresults = ether.wait_for_sync(topic='prepare_trial')The idea here is that we publish to a topic and then setup a subscribe reply topic. We already know how many subscribers to this topic there are, so we wait until all of them have published to the reply topic.
The two options above are non-block and blocking versions.