def _generate_promise_fulfilled_ripple(child_promise):
    """
    Generates a method that will resolve the child promise with the result value.  This is used when a promise returns
    a promise.
    :param child_promise: promise to notify.
    :return: generated method.
    """
    def fulfilled(result):
        child_promise.resolved(result)

    return fulfilled