Class: Google::Gax::Timer

Inherits:
Object
  • Object
show all
Defined in:
lib/google/gax/bundling.rb

Overview

This class will be used to run the #run_later tasks for the bundle.

Instance Method Summary collapse

Instance Method Details

#run_after(delay_threshold) ⇒ Object



439
440
441
442
# File 'lib/google/gax/bundling.rb', line 439

def run_after(delay_threshold)
  sleep delay_threshold
  yield
end