@classmethod
def succeed(cls, result):
    """
        Returns a Future for which the result has been set to the given result.
        Similar to Twisted's `Deferred.succeed()`.
        """
    f = cls()
    f.set_result(result)
    return f
