Ejemplo n.º 1
0
    def asynchronous(self, return_result=True):
        """Return the asynchronous request object.

        Refer to :class:`arango.async.AsyncExecution` for more information.

        :param return_result: store and return the result
        :type return_result: bool
        :returns: the async request object
        :rtype: arango.async.AsyncExecution
        """
        return AsyncExecution(self._conn, return_result)
Ejemplo n.º 2
0
    def async (self, return_result=True):
        """Return the asynchronous request object.

        Refer to :class:`arango.async.AsyncExecution` for more information.

        :param return_result: store and return the result
        :type return_result: bool
        :returns: the async request object
        :rtype: arango.async.AsyncExecution

        .. warning::
            This method will be deprecated in the future! Use
            :func:`arango.database.Database.asynchronous` instead.
        """
        return AsyncExecution(self._conn, return_result)