<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_active(self):
 """Returns True if listener has any active subscription."""

        if self._queue.exhausted:
            return False
        return any(ch.is_active for ch in self._refs.values())