def get_connections(self, data=True, as_coro=False):
        """Return connections from all the agents in the slave environments.

        :param bool data:
            If ``True``, returns also the data stored for each connection.

        :param bool as_coro:
            If ``True`` returns a coroutine, otherwise runs the asynchronous
            calls to the slave environment managers in the event loop.

        .. seealso::

            :meth:`creamas.core.environment.Environment.get_connections`
        """
        async def slave_task(addr, data):
            r_manager = await self.env.connect(addr)
            return await r_manager.get_connections(data)

        tasks = create_tasks(slave_task, self.addrs, data)
        return run_or_coro(tasks, as_coro)