google-apis-core/lib/google/apis/core/base_service.rb
def start_batch(cmd)
          fail "Batch already in progress" if batch?
          Thread.current[:google_api_batch] = cmd
          Thread.current[:google_api_batch_service] = self
        end
# Start a new thread-local batch context
# @param [Google::Apis::Core::BatchCommand] cmd
Start a new thread-local batch context
Start a new thread - local batch context
def start_batch(cmd)
          fail "Batch already in progress" if batch?
          Thread.current[:google_api_batch] = cmd
          Thread.current[:google_api_batch_service] = self
        end
def start_batch ( cmd ) fail "Batch already in progress" if batch? Thread . current [ :google_api_batch ] = cmd Thread . current [ :google_api_batch_service ] = self end
Start a new thread-local batch context
Start a new thread - local batch context
cmd
None