code: def queue(self):
          
          queue = NotificationQueue()
          self._listeners.add(queue)
          yield queue
          self._listeners.remove(queue)
docs: Get a queue of notifications
  
          Use it with Python with