Module: Plumbing::Spec
- Defined in:
- lib/plumbing/spec/modes.rb
Class Method Summary collapse
Class Method Details
.modes(inline: true, async: true, threaded: true) ⇒ Object
3 4 5 6 7 |
# File 'lib/plumbing/spec/modes.rb', line 3 def self.modes(inline: true, async: true, threaded: true, &) Plumbing.configure(mode: :inline, &) if inline Sync { Plumbing.configure(mode: :async, &) } if async Plumbing.configure(mode: thread_mode, &) if threaded end |