Module: ConcurrentRails::Testing::TestingFuture
- Included in:
- Promises
- Defined in:
- lib/concurrent_rails/testing.rb
Instance Method Summary collapse
Instance Method Details
#future(*args) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/concurrent_rails/testing.rb', line 28 def future(*args, &) if ConcurrentRails::Testing.immediate? future_on(:immediate, *args, &) elsif ConcurrentRails::Testing.fake? yield else super end end |