app/models/bento_search/concurrent_searcher.rb
def search(*search_args)
      search_args.freeze
      @futures = @engines.collect do |engine|
        Concurrent::Future.execute { rails_future_wrap { engine.search(*search_args) } }
      end
      return self
    end
# Starts all searches, returns self so you can chain method calls if you like.
Starts all searches, returns self so you can chain method calls if you like.
Starts all searches returns self so you can chain method calls if you like .
def search(*search_args)
      search_args.freeze
      @futures = @engines.collect do |engine|
        Concurrent::Future.execute { rails_future_wrap { engine.search(*search_args) } }
      end
      return self
    end
def search ( * search_args ) search_args . freeze @futures = @engines . collect do | engine | Concurrent :: Future . execute { rails_future_wrap { engine . search ( * search_args ) } } end return self end
Starts all searches, returns self so you can chain method calls if you like.
Starts all searches returns self so you can chain method calls if you like .
search_args