# File lib/aws/sns/topic_collection.rb, line 46
      def each &block

        next_token = nil

        begin
          
          list_options = next_token ? { :next_token => next_token } : {} 
          response = client.list_topics(list_options)

          response.topics.each do |t|
            topic = Topic.new(t.topic_arn, :config => config)
            yield(topic)
          end

        end while(next_token = response.next_token)
        nil

      end