and ack.response is None:
            self.logger.warning(warning_did_not_call_ack(listener_name))
            return None

        if response is None and ack.response is not None:
            response = ack.response
            self._debug_log_completion(starting_time, response)
            return response

        if response is not None:
            return response

    # None for both means no ack() in the listener
    return None</code></pre>
</details>
<div class="desc"></div>
</dd>
</dl>
</dd>
</dl>